Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 551 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 551 Bytes

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()}
            />```

## License
[MIT](https://opensource.org/licenses/MIT) license.