Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native textInput numbers only

<TextInput 
   style={styles.textInput}
   keyboardType='numeric'
   onChangeText={(text)=> this.onChanged(text)}
   value={this.state.myNumber}
   maxLength={10}  //setting limit of input
/>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #textInput #numbers
ADD COMMENT
Topic
Name
7+4 =