A simple keyboard-avoiding view for Android and iOS with React Native and Expo.
npm install rn-keyboard-avoiderA simple keyboard-avoiding view for Android and iOS in React Native with Expo. Works in both portrait and landscape orientations!
TextInput fields are pushed gracefully above the top of the keyboard, with a customisable offset between the top of the keyboard and the bottom of the TextInput.

bash
npm install --save rn-keyboard-avoider
`For proper behaviour on Android devices, add the
softwareKeyboardLayoutMode property to your app.json file as follows:`json
{
"expo": {
"android": {
"softwareKeyboardLayoutMode": "pan"
}
}
}
`How to Use
Simply wrap your app (or app contents) with the component:
`jsx
import { KeyboardAvoider } from 'rn-keyboard-avoider';export default function App() {
{/ your app contents /}
);
`For proper behaviour on Android devices in landscape orientation, add the
disableFullscreenUI property to your TextInput components as follows:`jsx
`Properties
$3
Controls the distance between the top of the keyboard and the bottom of your TextInput field. Default is 10px.
Limitations
- On Android devices, the yOffset will be reduced after the user starts typing. This is due to the behaviour of the native
softwareKeyboardLayoutMode property being set to pan`. If you're really keen to keep the offset, it's possible to simply increase the padding of your text inputs.Made by friggitydingo to support the development of a mobile sci-fi MMO built with React Native.

