react-native-keyboard-aware-scroll-view
react-native-keyboard-aware-scroll-view copied to clipboard
with enableOnAndroid paddingBottom doesn't works
"react-native-keyboard-aware-scroll-view": "^0.9.1", "react-native": "0.61.5",
<KeyboardAwareScrollView
style={styles.scrollView}
contentContainerStyle={styles.scrollContent}
keyboardShouldPersistTaps="handled"
extraHeight={20}
enableOnAndroid
>
scrollView: {
flex: 1,
},
scrollContent: {
flexGrow: 1,
justifyContent: 'center',
alignItems: 'center',
paddingVertical: 136,
},
When enableOnAndroid={true}, paddingBottom inside of paddingVertical: 136 in contentContainerStyle does NOT work on Android. Only if we set it separately as paddingBottom and paddingTop! When enableOnAndroid is false all is ok.
Did you fix it? Same problem here...
+1
Edit: Solved this by wrapping the children in a parent View and applying the paddingBottom there