@stereye/react-native-keyboard-shift
v1.1.7-beta.0
Published
A 2020s compatible keyboard avoiding view for Android and iOS that just works.
Downloads
6
Maintainers
Readme
react-native-keyboard-shift
This repo is a fork of FullStackCraft/react-native-keyboard-shift . Tested on React Native 0.68+.
Usage In Your Project
Install and save this package as a dependency:
npm install --save @stereye/react-native-keyboard-shift
Import and use the KeyboardShift component:
import '@stereye/react-native-keyboard-shift'
// other imports
export default function YourCoolKeyboardScreen () {
// Other logic, variables, etc.
return (
<KeyboardShift>
{/* Screen components */}
</KeyboardShift>
)
}
Compile and Develop
- Clone this repo:
git clone https://github.com/stereye/react-native-keyboard-shift
- Move into the example folder:
cd react-native-keyboard-shift/example
- Install dependencies:
npm install
- Start Metro
npm start
- Start Android or iOS
npm run android
# -or- iOS
npm run ios
Enjoy the juicy keyboard shifty-ness!
ANOTHER Keyboard Shifting Component?!
See the original blog post that led to the creation of this library for more information.