Bugs that default keyboard opens on the secureTextEntry form on iOS devices
See original GitHub issueDescription
There is a bug that the default keyboard opens under the password form.
Additionally, when the keyboard opens, it freezes for 10 or more seconds.
I expect the keyboard for password to open, but the default flick keyboard is open when tapping the form.
The password form is created by ReactNative.TextInput
with secureTextEntry={true}
option.
This bug is only occur on iOS devices.
React Native version:
System:
OS: macOS 11.1
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 1.56 GB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.13.0 - ~/.nodebrew/current/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.9 - ~/.nodebrew/current/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.10.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
Android SDK:
API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
Build Tools: 26.0.2, 26.0.3, 28.0.3, 29.0.2
System Images: android-22 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-24 | Google APIs Intel x86 Atom, android-25 | Google APIs ARM EABI v7a, android-25 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom, android-R | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6514223
Xcode: 12.2/12B45b - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_275 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
- Place one normal form and two secureTextEntry forms
- Select the password form then open the default keyboard
Expected Results
Open the password keyboard when RN TextInput is in password mode
Snack, code example, screenshot, or link to a repository:
https://gist.github.com/match/a4617371bdc10fb8cedbb2e653f6e85c
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:7
Top Results From Across the Web
A QWERTY keyboard is not shown when typing a password in ...
newPassword, a QWERTY keyboard is shown. In iOS14.2, if we tap a password text field(It means the text field which isSecureTextEntry is true)...
Read more >secureTextEntry Disable IOS 13+ Strong Password behavior
Not a optimal solution, but adding blurOnSubmit, and a keyboard Dismiss on submit seems to get the desired behavior back:
Read more >TextInput - React Native
A foundational component for inputting text into the app via a keyboard. Props provide configurability for several features, ...
Read more >keyboardavoidingview not working in ios - You.com | The Search ...
disable it on Android (unless you have disabled keyboard/soft input handling in your manifest). Open side panel.
Read more >A complete guide to TextInput in React Native - LogRocket Blog
Customization · Adding a placeholder · Multiple lines · Maximum length · Unalterable text box · Changing keyboard types · Getting passwords.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Adding this between the 2 consecutive password inputs did solve the problem:
<TextInput style={{ height: 1 }} />
https://github.com/facebook/react-native/issues/21572#issuecomment-444865397
The similar issue is occurred!
Description
I expect the keyboard for password to open, but the default flick keyboard is open when tapping the form.
React Native version:
Steps To Reproduce
Japanese - Kana
andEmoji
Expected Results
Open the password keyboard when RN TextInput is in password mode
How to resolve
Remove testID or change string not including ‘signup’.