( BaseComponent: React.ComponentType<any> = View, )
| 58 | ]; |
| 59 | |
| 60 | const createBox = < |
| 61 | Theme extends BaseTheme, |
| 62 | Props = React.ComponentProps<typeof View> & {children?: React.ReactNode}, |
| 63 | EnableShorthand extends boolean = true, |
| 64 | >( |
| 65 | BaseComponent: React.ComponentType<any> = View, |
| 66 | ) => { |
| 67 | return createRestyleComponent< |
| 68 | BoxProps<Theme, EnableShorthand> & |
| 69 | Omit<Props, keyof BoxProps<Theme, EnableShorthand>>, |
| 70 | Theme |
| 71 | >( |
| 72 | boxRestyleFunctions as RestyleFunctionContainer< |
| 73 | BoxProps<Theme, EnableShorthand>, |
| 74 | Theme |
| 75 | >[], |
| 76 | BaseComponent, |
| 77 | ); |
| 78 | }; |
| 79 | |
| 80 | export default createBox; |
no test coverage detected
searching dependent graphs…