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

scrollview bounces on focussing another textfield #515

Open mwegener-com opened 2 years ago

mwegener-com commented 2 years ago

Hey :) As you can the in the following video, my scrollview bounces up and down when I focus another textfield.

Props:

<KeyboardAwareScrollView keyboardShouldPersistTaps='handled' showsVerticalScrollIndicator={false}>

https://user-images.githubusercontent.com/64470126/138956171-f3306d2f-0566-4102-87fc-e979e691778d.mov

I need to add extraHeight={110}, because otherwise only the half of my text input is visible. This reduces the bounce but it is still visible.

https://user-images.githubusercontent.com/64470126/138955757-59051c4b-8162-4fe6-999c-11cdcff45879.mov

hannojg commented 2 years ago

Try setting keyboardOpeningTime={0}

HrideyReact commented 2 years ago

Try setting keyboardOpeningTime={0}

This worked for me! Thanks!

dev-babar commented 2 years ago

@mwegener-com how you handle focus on next input field onBlur / onSubmit ?

helloanil commented 1 year ago

setting keyboardOpeningTime={0} seems to have no effect for me. Is there any other solution for this issue?