Keyboardavoidingview not working properly with TextInput Password Field
See original GitHub issueš Bug Report
When we make TextInput
as a password fields KeyboardAvoidingView not work as expected.
Currently when remove secureTextEntry={true} it works fine like when I press next button on keyboard it will go to password textInput field from State textInput field and also password textInput field scroll up and works perfectly, but when I added secureTextEntry={true} which is mandatory this is not working for password fields, working fine on other fields perfectly. I also created a demo code, Please look into this. This issue is only in Android.
To Reproduce
I made a demo code to check this issue, just remove secureTextEntry={true}
from Password Fields This issue will arise only in android,
Expected Behavior
When I press next on keyboard it should go to password field and password field should scroll up like other Input Fields.
Code Example
Demo Code having Issue Question on StackOverflow
Environment
software | version |
---|---|
android | 8.0.1 |
react-native | 0.57.1 |
node | 8.12.0 |
npm | 6.4.1 |
expo sdk | 32.0.0 |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top GitHub Comments
@dulmandakh yes you are right it go to the next field this is not the issue. I tried with RN 0.59.1 but Issue I am discussing here not fixed , I am sure you didnāt understand my context or may be I am explaining in a wrong way.
AS @JKCooper2 mentioned
I think in android too keyboard should scroll when click next before we start type
Hi , I am facing the same issue as exactly mentioned by @hussainahmad . The error does occur in 0.59 too . One way i fixed it was to wrap the KeyBoardAvoidingView inside a ScrollView. Let me know if that works out .