react-native-keyboard-aware-scroll-view: Neither extraScrollHeight nor extraHeight are not working on Android (iOS works)
I have react-native 0.37.0 and react-native-keyboard-aware-scroll-view 0.2.6, basic scrolling functionality works for me, but neither extraScrollHeight nor extraHeight works for me.
Work on iOS version, though.
I’m using it because I have buttons below input and I want to make them visible when the keyboard is present. I set extraScrollHeight to the buttons’ height and it works for me on iOS but not on Android.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 9
- Comments: 20
I’m getting this on
0.4.1on RN0.49.extraScrollHeighthas no effects on Android. I haveandroid:windowSoftInputMode="adjustResize"set on AndroidManifest.I really fail to understand the logic of even having that enabledOnAndroid prop, and worse, it is false by default.
I’m running into what @luco is as well and I have
enabledOnAndroidset totrueandandroid:windowSoftInputModeis set toadjustPanin myAndroidManifest.xmlI’m encountering the same issue using the 0.3.0 Do you still see the problem too @lesniakania or others ?
Edit : After playing a bit with it, I managed to kind of achieve what I wanted by setting
windowSoftInputModetoadjustResizeand by commenting the code modifying thepaddingBottomof thenewContentContainerStyleinKeyboardAwareScrollView.json Android. Anyway the feature is still buggy on 0.3.0.Edit 2 : After playing more, using the same code as iOS in the
updateKeyboardSpacefunction inKeyboardAwareMixin.jsseems to make it work (=> https://github.com/truckfly/react-native-keyboard-aware-scroll-view/)@devbriguy use this lib https://github.com/jr-k/react-native-android-keyboard-adjust