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 scroll under keyboard after first key press on iOS #540

Open Guccieii opened 2 years ago

Guccieii commented 2 years ago

As the video shown, the view scroll under the keyboard after the first key pressed on iOS. Could someone suggest a solution? Thanks in advance. App run on iPhone 13 simulator with iOS 15.2

react-native: 0.66.1
react-native-keyboard-aware-scroll-view: 0.9.5

https://user-images.githubusercontent.com/50413696/171209683-031099b2-138c-4aff-bd27-54af251cfb70.mp4

daimonkor commented 2 years ago

The same, problem reproduced when KeyboardAwareScrollView is not root element and spend not full height screen (for example 2/3, first 1/3 contains header). I tried use the last textinput at bottom screen

heyalexchoi commented 1 year ago

having same issue I'm seeing that the issue happens after i add text to input and resets itself when focusing

so if i only focus from one text input to another, the scroll is correct if i change text in one text input, the scroll is wrong if i focus back and forth, even after the first change, the scroll is correct again

Oxyaction commented 1 year ago

adding worked for me

keyboardOpeningTime={Number.MAX_SAFE_INTEGER}

mentioned in #418

heyalexchoi commented 1 year ago

adding worked for me

keyboardOpeningTime={Number.MAX_SAFE_INTEGER}

mentioned in #418

~this just makes the view do nothing for me. it doesn't scroll to avoid the keyboard which... is the point of the library?~

I had scrollEnabled set to false. setting that to true did improve the behavior.

LorandP commented 1 year ago

adding worked for me

keyboardOpeningTime={Number.MAX_SAFE_INTEGER}

mentioned in #418

This worked for me, thx! RN: 0.68 "react-native-keyboard-aware-scroll-view": "0.9.5"