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.1
on RN0.49
.extraScrollHeight
has 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
enabledOnAndroid
set totrue
andandroid:windowSoftInputMode
is set toadjustPan
in myAndroidManifest.xml
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
toadjustResize
and by commenting the code modifying thepaddingBottom
of thenewContentContainerStyle
inKeyboardAwareScrollView.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 inKeyboardAwareMixin.js
seems 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