You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Changing TextInput keyboardType from visible-password does not unset the underlying flags (Android) #17248
Environment:
OS: macOS High Sierra 10.13.2
Node: 9.2.0
Yarn: 1.3.2
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: facebook/react-native#master => 1000.0.0
(react-native built from master branch on 2017-12-17)
Target Platform: Android 8.x
Tested specifically on Nexus 5x, api level 27
Steps to Reproduce
Create a TextInput with secureTextEntry set and a keyboardType of null, undefined, or 'default'
Change the keyboardType to 'visible-password'
Change the keyboardType back to 'default'
Expected Behavior
The field would initially be an obscured password field, then become unobscured, then become obscured again when no longer of type 'visible-password'.
Additionally, the soft keyboard variant stays in "password" mode (e.g., no suggestions) in each case due to secureTextEntry.
Actual Behavior
After set to 'visible-password', the field remains unobscured even after switching to a different type.
However, when not obscured, the soft keyboard falls returns to a plain text keyboard with suggestions instead of numbers on the top row (may vary by device).
Once running on an Android device or emulator, tap the field so that the soft keyboard appears and enter text into the field. This will trigger a state change that toggles between 'visible-password' and 'default'.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.
Activity
Unset phone and visible-password keyboardType flags on Android
stale commentedon Feb 15, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.
hanspoo commentedon Apr 9, 2018
Same problem here with:
The use of a keyboardType email-address disables secureTextEntry.