APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

View does not scroll when switching to same keyboard type text inputs #486

Open sandeshk-f3 opened 3 years ago

sandeshk-f3 commented 3 years ago

I have a sign up screen and when I go from Last Name to Email and Email to Password it works fine, but when I go to Confirm Password, it does not work. Going from Email to Confirm Password works but not from Password to Confirm Password (same keyboard type fields).

sandeshk-f3 commented 3 years ago

Handled by adding this to TextInput but need proper fix in lib: onFocus={(e) => { // Handle scroll from secure text entry to another input with secure text entry confirmPassRef && confirmPassRef.current.setNativeProps({ secureTextEntry: false }); setTimeout(() => { confirmPassRef && confirmPassRef.current.setNativeProps({ secureTextEntry: !showConfirmPassword }) }, 50); }