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

KeyboardAwareFlatList scrolls back to top of form when selecting input - iOS #538

Open richlewis14 opened 2 years ago

richlewis14 commented 2 years ago

I have had a read through numerous posts in here and am yet to find a solution that works, I am hoping that someone can point me in the right direction

When I click on an input field near the bottom of the form I am taken back to the top and have to scroll back down to the input field I was filling in (this is happening on sim and real device for iOS)

I've attached a video to demonstrate (though the keyboard appears to be omitted at the end for some reason).

I am on RN 0.66.4 and version 0.9.5 of this repo

These are the options I am passing at the moment

<KeyboardAwareFlatList
     enableResetScrollToCoords={false}
     showsVerticalScrollIndicator={false}
     keyboardOpeningTime={0}
     keyboardShouldPersistTaps="handled"

https://user-images.githubusercontent.com/1084186/167400646-028f111e-2516-4754-b56e-6a48d737519e.mp4

liuguanlin commented 2 years ago

This problem also arises,how to solve it

stealkiller06 commented 2 years ago

Hi, were you able to solve this issue?

richlewis14 commented 2 years ago

Haven't been able to resolve as yet unfortunately

josephk96 commented 2 years ago

I'm currently running into a similar issue 😞

mgntr-mauro-fernandez commented 1 year ago

Has anyone solved this? I'm having the same issue as well :/

helloanil commented 1 year ago

This is quite annoying. I have a similar issue using KeyboardAwareScrollView.

Thuan60th4 commented 1 year ago

which library did u use in the club name textInput