I'm trying to pass style as props to my custom TextInput
component.I found this snippet to type button and label style in props :
import { StyleProp, Text, TextStyle, View, ViewStyle} from 'react-native';interface IProps { label: string; buttonStyle?: StyleProp<ViewStyle>; labelStyle?: StyleProp<TextStyle>;}// rest
but I did not find anything for TextInput
nor any documentation about StyleProp
So what is the proper way to pass style to TextInput?