React Native ScrollView extension that prevents inputs from being covered by the keyboard
npm install react-native-keyboard-avoiding-scroll-view

!Supports Android and iOS
!MIT License

React Native ScrollView extension that prevents inputs from being covered by the keyboard.

$ npm install react-native-keyboard-avoiding-scroll-view --save
Import KeyboardAvoidingScrollView, KeyboardAvoidingFlatList, or KeyboardAvoidingSectionList and use them like the regular ScrollView, FlatList or SectionList components from React Native core. Internally, these components are wrapped in another custom component called KeyboardAvoidingContainer, which is also exported for advanced use cases.
``javascript
import {KeyboardAvoidingScrollView} from 'react-native-keyboard-avoiding-scroll-view';
function MyComponent() {
return (
)
}
`
In addition to the regular ScrollView, FlatList or SectionList props, you can also provide the following props for extra customization:
- stickyFooter
- containerStyle
---
Used to display a persisted view under the scrollable content. Sticky footer is always shown above the keyboard, which could be the desired behaviour for a submit button.
| Type | Required |
| ----------------- | -------- |
| React.ReactNode | No |
---
Used to style the container component.
| Type | Required |
| ---------------------- | -------- |
| StyleProp
MIT License © Alka, Inc