-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.57.2][IOS] TextInput secureTextEntry keyboard locale updated #21572
Comments
After some investigations, it seems that the problem only appear when i have 2 input with the secureTextEntry in the the same view. |
Same problem for me. But only IOs !! |
Same here I can confirm that it only occur in IOS and when there is two secureTextEntry input in the same form. Any workaround so far ? |
At moment, i removed the second secure input and replace it by a "show password feature". |
If you collapse your application and come back, you can get crash app. |
Same Problem here. Doesnt have any impact if those fields are placed in different components as well. |
I just found out, that this problem does not occur when the one of the fields is set to
|
Thanks men!! It's help me. |
I have the same problem but only on simulators. No problem when running on a real device. Same for you ? |
Hi, I am actually having the same problem and here is some more informations about it : First of all this issue is related to the latest version of iOS starting with iOS 12.0 and more (I wasn't experimenting this issue using the iOS 11.1) My current project is using
Package.json
Code
Just the simple default example with the bug as describe before. In addition we can see that the problem seems to be cause by the So if you change the code and keep only two fields as follow, it will work perfectly :
As soon as you add another With Three :
The first one and last one keeps the keyboard as it is and the two others change the keyboard. So one way to "deal" with it to make it works is by adding a line in between the
In this case the keyboard keeps working properly. Works
Doesn't Works
I also tried with other elements like a Hope all this informations will be helping to correct this bug that is pretty annoying I created a new issue about with a little more informations and video and screen |
Well found ! thanks for the trick. The solution : |
I also open another issue about it but that's a very annoying bug :s |
This looks like an iOS bug. It's happening in native apps as well: https://stackoverflow.com/q/52701160/3188334 |
I also had the problem on iOS, with Expo SDK32, real device. Adding this between the 2 consecutive password inputs did solve the problem: <TextInput
style={{ width: 0, height: 0 }}
/> |
As noted by @rajivshah3, this appears to be a upstream iOS bug, i.e. it affects non-RN code as well: I did a quick search through https://openradar.appspot.com but couldn’t quickly find any reports for this. I would suggest all of you affected take a minute to report the bug to Apple–and it would be great if you would copy the report into [openradar](https://openradar.appspot.com and link it here. For now, in an effort to reduce the number of open issues in the issue tracker, I’ll close this ticket. |
Hi, I solved this as follows, this isn't the best but it works for me
|
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 682.65 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.11.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
Android SDK:
Build Tools: 23.0.1, 27.0.3
API Levels: 23, 27
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5014246
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
react: 16.5.0 => 16.5.0
react-native: 0.57.2 => 0.57.2
npmGlobalPackages:
react-native-cli: 2.0.1
Description
It seems that the secureTextEntry change the keyboard locale on IOS when there is one field in form who's not secure.
Reproducible Demo
Reproduction on a fresh install via CLI:
1 - Change OS lang to French.
2 - Copy this App.js content.
Expected result
Keyboard locale should stay in OS language for each fields.
Actual result
Email input keyboard is Azerty.
Password and his confirmation are in Qwerty.
Some tests
If you set all fields with
Keyboard locale does not change, and stay Azerty for each one.
Any help is welcome.
The text was updated successfully, but these errors were encountered: