react-native-keyboard-aware-scroll-view
react-native-keyboard-aware-scroll-view copied to clipboard
Resets to top of scrollview when moving from one TextInput to another
It seems like issue https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/82 is back. I am moving between TextInputs and when I do, KeyboardAwareScrollView jumps up to the top of the scroll view and then scrolls to the next input. Or sometimes scrolls to the next input and then jumps up to the top and then down. Setting enableResetScrollToCoords={false}
doesn't help.
Latest version of RN and this module.
Any ideas how to fix? Thanks for this awesome component by the way, very useful! :-)
Hmm, it seems to behave a lot better if I set blurOnSubmit={false}
on my TextInput
elements, but then they don't behave as desired if the user just taps on a single input as opposed to next-buttoning between them ... Just wanted to add this in case it might help others.
Update: blurOnSubmit
should be false
for iOS and true
for Android. Setting it to false on Android totally breaks the scrolling.
Please try this on a real device, the jump to top issue is affects only to the simulator.
I was trying this on a real device: an iPhone X running iOS 12.1. The jump to top issue definitely affects real devices - I can reproduce it 100% of the time ...
On Dec 11, 2018 at 12:18 AM, <Álvaro Medina Ballester (mailto:[email protected])> wrote:
Please try this on a real device, the jump to top issue is affects only to the simulator.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/329#issuecomment-446111422), or mute the thread (https://github.com/notifications/unsubscribe-auth/AmWxt3ZSay63gzT6eYth4VNd_4qfPd1Fks5u32pXgaJpZM4ZMc-F).
I'll try to reproduce this today. Thanks for reporting.
I'm unable to reproduce the issue on a real device in an app we're about to release. Can you share the source code of your component?
I can’t share the source code of the actual app because it’s a private app but I could rip out the relevant components and put them in a small test app that reproduces the issue. Give me a few days to do that please and I’ll update this issue with a link to that repo when it’s done ...
On Dec 12, 2018 at 7:10 AM, <Álvaro Medina Ballester (mailto:[email protected])> wrote:
I'm unable to reproduce the issue on a real device in an app we're about to release. Can you share the source code of your component?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/329#issuecomment-446621353), or mute the thread (https://github.com/notifications/unsubscribe-auth/AmWxt_dEVoT7qfeM-cl4KNXQfoygioE4ks5u4RxugaJpZM4ZMc-F).
Please try this on a real device, the jump to top issue is affects only to the simulator.
From the way you worded that, it sounds like it's a known issue.
Do you know why it happens in the Simulator and how to avoid it? I've got a pretty long form in my app and am getting pretty close to defenestrating my Mac :smile:
@wbercx and @alvaromb - I definitely see this issue on a real device. It does not happen only on the simulator ...
@wbercx and @alvaromb - I definitely see this issue on a real device. It does not happen only on the simulator ...
Yeah, just tested it on an iPad. Happens there too. enableResetScrollToCoords={false}
on my KeyboardAwareFlatList
has actually worked for me somewhat.
I could fix this issue by adding keyboardOpeningTime={-1}
to KeyboardAwareScrollView
. Seems a little hacky but solved the problem in my case.
seems this issue is related to https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/333 - has there been any fix implemented for this?
keyboardOpeningTime={-1}
did not work
enableResetScrollToCoords={false}
did not work
enableAutomaticScroll
was the closest I could get to a fix but it still scrolls down slightly when the input is focused.
This happens to me as well with the following properties set:
keyboardOpeningTime={0}
enableResetScrollToCoords={false}
keyboardShouldPersistTaps="handled"
extraScrollHeight={120}
Pressing the second input a second time, appears to work, but pressing it the first time it does bounce or scroll strangely.
I am also running into the same exact issue. I tried all the things above with no luck. If one textinput is selected and I select the next one, it adjusts as expected, but then all of the sudden it just scrolls all the way up. Has anyone else figured out a way to fix this? This is happening on a simulated device and real device.
Im also experiencing this. Have no clue how to approach it
keyboardOpeningTime={0}
enableResetScrollToCoords={false}
worked for me
Has anyone found a solution for this yet? Using RN 0.63.3 and react-native-keyboard-aware-scroll-view 0.9.4
This happens to me as well with the following properties set:
keyboardOpeningTime={0}
enableResetScrollToCoords={false}
keyboardShouldPersistTaps="handled"
extraScrollHeight={120}
Pressing the second input a second time, appears to work, but pressing it the first time it does bounce or scroll strangely.
Same issue here for me, did you manage to fix this at all?
Getting this issue as well on real device.
Same issue happening for me, even on multiple real iOS devices. It seems current best option is the setTimeout.
Just updating here. I had this issue a few weeks ago, and although I can't remember where I found the work-around, this is what works for me:
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
Just updating here. I had this issue a few weeks ago, and although I can't remember where I found the work-around, this is what works for me:
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
it worked without scrolling down. Thank you very much
Just updating here. I had this issue a few weeks ago, and although I can't remember where I found the work-around, this is what works for me:
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
Worked for me too. Thank you