react-native-num-textinput
v1.0.2
Published
A wrapper component for TextInput that accepts only numerical values
Downloads
14
Maintainers
Readme
react-native-num-textinput
A wrapper component for TextInput that accepts only numerical values
Usage
Inside your parent component:
- Import the component:
import NumTextInput from 'react-native-num-textinput'
- Use it like a regular TextInput.
Example
inside your render() method:
onChangeText={(text)=> this.setState({myText:text})}
value={this.state.myText.toString()}
/>```