react-native-android-keyboard-mode-changer

Package to change android soft input mode


Keywords
react-native, ios, android
License
MIT
Install
npm install react-native-android-keyboard-mode-changer@0.1.7

Documentation

react-native-android-keyboard-mode-changer

Package to change android soft input mode

Installation

npm install react-native-android-keyboard-mode-changer

Usage

import { getAndroidKeyboardModeChanger } from "react-native-android-keyboard-mode-changer";

// ...
// Returns undefined for any platform beside android. So you will have to use as optional with ?
const androidKeyboardModeChanger = getAndroidKeyboardModeChanger();

androidKeyboardModeChanger?.setAdjustPan().then()

// return soft input mode back on the same screen if needed
androidKeyboardModeChanger?.resetToDefault().then()

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT