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

Most upvoted comments

I’m getting this on 0.4.1 on RN 0.49. extraScrollHeight has no effects on Android. I have android: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 enabledOnAndroid set to true and android:windowSoftInputMode is set to adjustPan in my AndroidManifest.xml

"react-native": "0.49.3",
"react-native-keyboard-aware-scroll-view": "^0.4.1",

I’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 windowSoftInputMode to adjustResize and by commenting the code modifying the paddingBottom of the newContentContainerStyle in KeyboardAwareScrollView.js on Android. Anyway the feature is still buggy on 0.3.0.

Edit 2 : After playing more, using the same code as iOS in the updateKeyboardSpace function in KeyboardAwareMixin.js seems to make it work (=> https://github.com/truckfly/react-native-keyboard-aware-scroll-view/)