1.3.0 • Published 5 years ago

react-native-above-keyboard v1.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

react-native-above-keyboard

React native component that places items above the keyboard

npm.io

Description

This component is not a replacement for KeyboardAvoidingView. It is useful for scenarios where you want to display items at the bottom of the screen but when the keyboard is triggerd it moves the items just above the keyboard. Also, you may place your component anywhere on the screen using the containerStyle prop.

Installation

Installation can be done through npm or yarn:

npm i react-native-above-keyboard --save
yarn add react-native-above-keyboard

Usage

import AboveKeyboard from "react-native-above-keyboard";
<AboveKeyboard>
 <View>
   <Text>This will be placed just above the keyboard.</Text>
 </View>
</AboveKeyboard>

Props

conatinerStyle - style the internal wrapper, can be used to adjust the position of the component. keyboardAvoidingViewBehaviour - behaviour prop from KeyboardAvoidingView, defaults to "padding"

License

MIT.