Just an extension to standard TextInput component from react-native with added support to styling through themes
Usage
import { TextInput } from 'react-native-zero-ui';
<TextInput
value={this.state.something}
placeholder="Write something here"
/>
Predefined styles
No are predefined within the plugin. You can add your in your own theme file. Only thing you need is to extend it through zero.ui.TextInput
key
Usage
const theme = {
'zero.ui.TextInput': {
// my global custom styling for TextInput
'.myStyle': {
// custom styling for myStyle class
},
defaultProps: {
// my default props
}
}
}
<TextInput styleName="myStyle" />
List of styles
No predefined styles are available at the moment
Props
All properties are identical to those from Text component within react-native