Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react native text input keyboard how to show dot instead of comma?

I have an issue in react-native text input ios and I want to show a numeric keyboard. Here is the code that describes very well:

<TextInput
  keyboardType={'numeric'}
  onChangeText={(setCurrentValue) => this.setState({ setCurrentValue })}
/>  

but in ios shows a comma in the keyboard, as in the picture below:

enter image description here

Instead of that comma I want to show a dot. Somebody have an idea how to do without replace method in JavaScript?

Thank you!

like image 518
Fabio Plaka Avatar asked Oct 17 '25 12:10

Fabio Plaka


1 Answers

Your keyboard depend on region For example if you set your region from General > keyboard > language and region > to "Russia" you will get comma instead of dot. Set it to US you will get the dot instead of comma

like image 130
Pramod Avatar answered Oct 21 '25 01:10

Pramod



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!