( BaseComponent: React.ComponentType<any> = Text, )
| 52 | ]; |
| 53 | |
| 54 | const createText = < |
| 55 | Theme extends BaseTheme, |
| 56 | Props = React.ComponentProps<typeof Text> & {children?: React.ReactNode}, |
| 57 | EnableShorthand extends boolean = true, |
| 58 | >( |
| 59 | BaseComponent: React.ComponentType<any> = Text, |
| 60 | ) => { |
| 61 | return createRestyleComponent< |
| 62 | TextProps<Theme, EnableShorthand> & |
| 63 | Omit<Props, keyof TextProps<Theme, EnableShorthand>>, |
| 64 | Theme |
| 65 | >( |
| 66 | textRestyleFunctions as RestyleFunctionContainer< |
| 67 | TextProps<Theme, EnableShorthand>, |
| 68 | Theme |
| 69 | >[], |
| 70 | BaseComponent, |
| 71 | ); |
| 72 | }; |
| 73 | |
| 74 | export default createText; |
no test coverage detected
searching dependent graphs…