Skip to content

A wrapper component for TextInput that accepts only numerical values

Notifications You must be signed in to change notification settings

amirfl/react-native-num-textinput

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A wrapper component for TextInput that accepts only numerical values

Resources

Stars

Watchers

Forks

Packages

No packages published