Open msageryd opened 4 years ago
Also on the same issue.
You can try this trick.
<KeyboardAvoidingView style={{ flex: 1, backgroundColor: '#fff' }} behavior={Platform.OS === 'ios' ? 'padding' : undefined} keyboardVerticalOffset={80}> ...your code here </KeyboardAvoidingView>
There is a small problem, your screen height will larger a bit if you look at the bottom of the screen (I tested on simulator iPhone6s, iPhone7, 8).
I have sticky buttons at the bottom of my scrollview. When the keyboard shows these are stuck to the bottom of the screen, i.e. they are not moved up as the rest of the keyboard-aware-scroll-view.
The buttons are unreachable whenever the keyboard is shown. Any tips on solving this?
Code: There are two childs in the scrollView, one Form and one View with buttons. By inverting stickyHeaders and appointing child 1 (i.e. the second component) as sticky my buttons are sticky at the bottom. (Button is from react-native-paper)