1.0.2 • Published 8 years ago
react-native-num-textinput v1.0.2
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()}
/>```