react-native-keyboard-aware-scroll-view icon indicating copy to clipboard operation
react-native-keyboard-aware-scroll-view copied to clipboard

Screen scrolls up and down when keyboard is up.

Open ChetanBains opened this issue 3 years ago • 4 comments

Issue Video :

https://user-images.githubusercontent.com/42121055/131109600-1bc3c8dc-07da-43b6-b9de-5d8fbbf63339.mp4

I have used these props:

enableOnAndroid={true} keyboardShouldPersistTaps={"handled"} style={Styles.parentScrollView} enableResetScrollToCoords={false}

style:

parentScrollView: { flexGrow: 1, paddingLeft: 20, paddingRight: 20, marginTop: DW(10) }

It is specific for iOS 14

ChetanBains avatar Aug 27 '21 09:08 ChetanBains

@janicduplessis @ChetanBains

Add this prop: contentInset={{top: someFixedValue}} The issue is not in this package but in iOS. This behavior causes issues on SafeAreaView from https://github.com/th3rdwave/react-native-safe-area-context as well. Looks like the native components from iOS emits several events about the insets with wrong values.

I suggest you to take care of the top inset in a parent and use top: 0 but that's up to you guys

LuuchoRocha avatar Sep 15 '21 10:09 LuuchoRocha

contentInset={{top: someFixedValue}}

@LuuchoRocha Hi, contentInset={{top: 0}} helped for IOS 14, but content stopped scrolling till the end(

uladzislau-stuk avatar Sep 23 '21 09:09 uladzislau-stuk

contentInset={{top: someFixedValue}}

@LuuchoRocha Hi, contentInset={{top: 0}} helped for IOS 14, but content stopped scrolling till the end(

same problem. Any fix for this?

mwegener-com avatar Oct 27 '21 13:10 mwegener-com

Try setting: keyboardOpeningTime={0}

hannojg avatar Nov 04 '21 21:11 hannojg