Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native Numeric Keyboard returnKeyType Label iOS

I try to add "done" button to iOS keyboard on my react native application. When it is standard keyboard, "Done" label will change by language of the phone. But when I use numeric keyboard, "Done" label not changing.

How can I change label of "Done" text on iOS?

Here is the example:

<TextInput keyboardType="numeric" returnKeyType="done" />
like image 864
Erman Tepe Avatar asked Aug 20 '26 07:08

Erman Tepe


1 Answers

You can change the "Done" button label according to the user's language by using the InputAccessoryView.

https://reactnative.dev/docs/inputaccessoryview

like image 74
Matti Tihveräinen Avatar answered Aug 22 '26 22:08

Matti Tihveräinen



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!