1- import type { ImageStyle , TextStyle , ViewStyle } from 'react-native'
1+ import type { BoxShadowValue , FilterFunction , ImageStyle , TextStyle , ViewStyle } from 'react-native'
22import type { ShadowOffset , TransformStyles , UnistylesTheme } from './core'
33import type { UnistylesBreakpoints } from '../global'
44import type { UnistylesMiniRuntime } from '../core'
55
66// these props are treated differently to nest breakpoints and media queries
7- type NestedKeys = 'shadowOffset' | 'transform' | 'textShadowOffset'
7+ type NestedKeys = 'shadowOffset' | 'transform' | 'textShadowOffset' | 'boxShadow' | 'filter'
88
99export type UnistyleView = Omit < ViewStyle , NestedKeys >
1010export type UnistyleText = Omit < TextStyle , NestedKeys >
@@ -13,7 +13,9 @@ export type UnistyleImage = Omit<ImageStyle, NestedKeys>
1313type UnistyleNestedStyles = {
1414 shadowOffset ?: ToDeepUnistyles < ShadowOffset > ,
1515 textShadowOffset ?: ToDeepUnistyles < ShadowOffset > ,
16- transform ?: Array < ToDeepUnistyles < TransformStyles > >
16+ transform ?: Array < ToDeepUnistyles < TransformStyles > > ,
17+ boxShadow ?: Array < ToDeepUnistyles < BoxShadowValue > > | string ,
18+ filter ?: Array < ToDeepUnistyles < FilterFunction > > | string
1719}
1820
1921type Variants = {
0 commit comments