react-native: iOS: returnKeyType is not localized for numeric TextInput
Description
The return key for a numeric TextInput is not localized to the OS Language of the user.
On a default alphabetic input, the “done” button is correctly localized.
React Native version:
System: OS: macOS 10.15.3 CPU: (16) x64 Intel® Core™ i9-9880H CPU @ 2.30GHz Memory: 43.03 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.16.0 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 23, 25, 26, 27, 28 Build Tools: 23.0.1, 26.0.1, 28.0.3, 29.0.2 System Images: android-25 | Google APIs Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-R | Google APIs Intel x86 Atom IDEs: Android Studio: 3.5 AI-191.8026.42.35.5791312 Xcode: 11.5/11E608c - /usr/bin/xcodebuild npmPackages: react: ^16.9.0 => 16.9.0 react-native: ^0.61.5 => 0.61.5
Steps To Reproduce
Embed the following component:
<TextInput
keyboardType = 'numeric'
returnKeyType='done'
/>
Expected Results
I expected the return key “done” to be correctly localized to the OS Language, like it is done for non-numeric textInputs
Snack, code example, screenshot, or link to a repository:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 12
- Comments: 17 (1 by maintainers)
Just a reminder that this is still an issue.
Excellent. Thanks a lot!
We marked the issue as “Fixed” once the fix has landed in main. The specific fix (https://github.com/facebook/react-native/commit/32931466ed7e3d8d9eeeb65f12ce146e123870ba) is available in React Native 0.77+
Any update on this?