Keyboard-aware forms in React Native and Expo with a Save button that stays above the keyboard

A developer built a booking app and found that common React Native keyboard fixes like KeyboardAvoidingView and KeyboardAwareScrollView behave inconsistently across iOS and Android. To address this, they released an open-source package, @saulzayn/rn-keyboard-form, that keeps the focused field visible above the keyboard. The footer, such as a Save or Continue button, rides on top of the open keyboard so users can submit without dismissing it. The package also adds a toolbar with previous, next, and Done controls, and works inside iOS modal sheets, iPad form sheets, and bottom sheets. It relies on react-native-keyboard-controller, a native module that requires a development build rather than Expo Go.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in