react-native-keyboard-avoider
react-native-keyboard-avoider copied to clipboard
iOS ui jerk solution
This is a great package that really does fix a lot of the common issues found with the KeyboardAwareScrollView library. I found an issue on iOS that when you have multiple text inputs using the KeyboardAvoiderScrollView component, it kept moving the screen above the focused text input and hiding it behind the keyboard view.
For those that are facing similar issues, adding automaticallyAdjustKeyboardInsets to the KeyboardAvoiderScrollView removes this issue (at least for me it did).
<KeyboardAvoiderScrollView
automaticallyAdjustKeyboardInsets
contentContainerStyle={{ flexGrow: 1 }}
>
{children}
</KeyboardAvoiderScrollView>
Hope this helps someone when using this package