Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

TextInput style Props type react native

$
0
0

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 StylePropSo what is the proper way to pass style to TextInput?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>