2

I have try all of type with keyboardType, it will shows number and others characters on iPad.

enter image description here

What I try the keyboardType includes 'default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search'

<TextInput 
  style={styles.textInput}
  keyboardType='numeric'
  onChangeText={(tex) => this.changeText(tex)}
  value={this.state.text}
  placeholder={'0912 345 678'}
  placeholderTextColor='rgba(33, 33, 33, 0.41)'
/>

Is any way to achieve it just shows numeric keyboard ?

Thanks in advance.

Morton
  • 5,380
  • 18
  • 63
  • 118

1 Answers1

3

It seems that iPads do not contain a number only keyboard.. In order to achieve one, you will need to create your own numeric keypad.

There are some good examples suggested by @bjtitus in this question.

Hope you will also find this Github Link helpful.