<TextInput style={styles.textInput} keyboardType='numeric' onChangeText={(text)=> this.onChanged(text)} value={this.state.myNumber} maxLength={10} //setting limit of input />
keyboardType='numeric'