Snack coming soon
Until then:
- Clone this repo:
git clone https://github.com/FullStackCraft/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 iosEnjoy the juicy keyboard shifty-ness!
Install and save this package as a dependency:
npm install --save @fullstackcraft/react-native-keyboard-shiftImport and use the KeyboardShift component:
import'@fullstackcraft/react-native-keyboard-shift'// other importsexportdefaultfunctionYourCoolKeyboardScreen(){// Other logic, variables, etc.return(<KeyboardShift>{/* Screen components */}</KeyboardShift>)}See the original blog post that led to the creation of this library for more information.