react-native-keyboard-aware-scroll-view icon indicating copy to clipboard operation
react-native-keyboard-aware-scroll-view copied to clipboard

If textinput is password with secureTextEntry props. The auto scroll doesn't work correctly

Open anhkieet opened this issue 5 years ago • 6 comments

I have the same problem with https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/212. Can someone take a look? Thanks

If textinput is password with secureTextEntry props. The auto scroll doesn't work

React 16.2.0 React Native 0.52.0 Keyboard-aware-scroll-view 0.7.4 iOS 11.4.1

anhkieet avatar Dec 03 '18 07:12 anhkieet

In my case auto scroll bounces before settling to final position. After removing secureTextEntry prop form TextInput everything works fine.

PiotrD-MR avatar Jul 16 '19 13:07 PiotrD-MR

I have the same problem. But I caant remove the secureTextEntry

acollazomayer avatar Oct 02 '19 14:10 acollazomayer

I found that this happens when you have two inputs with secureTextEntry enabled

acollazomayer avatar Oct 02 '19 15:10 acollazomayer

@acollazomayer you can fix the problem with passing negative extraHeight prop: extraHeight={-65}

DavitVosk avatar Jan 28 '20 08:01 DavitVosk

@DavitVosk what?

acollazomayer avatar Jan 31 '20 21:01 acollazomayer

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(() => { // @ts-ignore: Object is possibly 'null'. confirmPassRef && confirmPassRef.current.setNativeProps({ secureTextEntry: !showConfirmPassword }) }, 50); }

sandeshk-f3 avatar May 05 '21 11:05 sandeshk-f3