React-native-keyboard-aware-scroll-view: Dragging view "jitters" on iOS

Created on 29 Dec 2016  路  15Comments  路  Source: APSL/react-native-keyboard-aware-scroll-view

Has anyone experienced the view "jittering" when you drag it? It happens when using:
<KeyboardAwareScrollView keyboardDismissMode='on-drag' keyboardShouldPersistTaps={true}>

Also, it adds extra space at the top and bottom of the view?
Edit: Setting automaticallyAdjustContentInsets={false} removes the space at the top, not the bottom however.

Most helpful comment

try set enableResetScrollToCoords to false,this works for me.
Besides, I think it should default to false if resetScrollToCoords is undefined

All 15 comments

The extra space may be due to the ScrollView automatically adjusting content insets.

I have the same issue, anyone got a solution?

This is my setup:
`

automaticallyAdjustContentInsets={ false }
keyboardDismissMode={ 'on-drag' }
keyboardShouldPersistTaps={ true }
automaticallyAdjustContentInsets={ false }
ref="scroll">
`

Can you upload a gif with the current behaviour? I'm not experiencing any "jittering" and I hardly believe it's because of this lib. I bet this is something related to the underlying ScrollView.

Can you post your full component source code and the RN version you're running on?

Thanks @eHallberg! Testing it right now.

I'm using RN 0.39. If it sheds light on the problem, I'm using this gist for ios: https://gist.github.com/dbasedow/f5713763802e27fbde3fc57a600adcd3
then using this library for android.

This is definitely a problem with the upstream component ScrollView and the 'on-drag' prop of keyboardDismissMode. I'm trying to understand why it's not appearing when using the 'interactive' mode...

The "jittering" seems to be produced by resetting the scroll position when dismissing the keyboard. I'm trying to find a workaround.

In the meantime, can you guys use the 'interactive' dismiss mode?

@alvaromb Yeah, ill do that meanwhile. Thx for the quick answers!

try set enableResetScrollToCoords to false,this works for me.
Besides, I think it should default to false if resetScrollToCoords is undefined

I can confirm the @hitbear518 fix. Works fine for me to.

Can you test the new release? https://github.com/APSL/react-native-keyboard-aware-scroll-view/releases/tag/v0.4.2

Ping me if this issue still persists and I'll reopen.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings