react-native-iqkeyboard-manager
v0.0.5
Published
This is just a wrapper to IQKeyboardManager
Downloads
9
Maintainers
Readme
react-native-iqkeyboard-manager
Getting started
$ npm install react-native-iqkeyboard-manager --save
Mostly automatic installation
$ react-native link react-native-iqkeyboard-manager
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-iqkeyboard-manager
and addRNKeyboardmanager.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNKeyboardmanager.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import RNKeyboardmanager from 'react-native-iqkeyboard-manager';
//enable keyboard manager
RNKeyboardmanager.enableWithOptions({
shouldResignOnTouchOutside: true,
keyboardDistanceFromTextField: 20,
preventShowingBottomBlankSpace: true,
enableAutoToolbar: true,
toolbarDoneBarButtonItemText: "Done",
toolbarManageBehaviour: 1, // 0,1, 2
shouldToolbarUsesTextFieldTintColor: true
})
//disable keybard manager
RNKeyboardmanager.disable();