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

with enableOnAndroid paddingBottom doesn't works

Open ivankdev opened this issue 5 years ago • 2 comments

"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.

ivankdev avatar Jan 17 '20 11:01 ivankdev

Did you fix it? Same problem here...

danielxander avatar Nov 09 '20 15:11 danielxander

+1

Edit: Solved this by wrapping the children in a parent View and applying the paddingBottom there

anlai2 avatar Mar 10 '21 19:03 anlai2