mirror of
https://github.com/zhigang1992/react-native-keyboard-manager.git
synced 2026-01-12 22:50:32 +08:00
4.0.10-2
React-Native Keyboard Manager
Library that allows to prevent issues of keyboard sliding up and cover on React-Native iOS projects. ⚛
Thanks to awesome IQKeyboardManager ❤️
Demo
Requirements
- React Native >= 0.40.0
- iOS >= 8.0
Use
It does not need any library setup to work, just install and go.
But, if you need some configuration, there are some options available.
import KeyboardManager from 'react-native-keyboard-manager'
KeyboardManager.setEnable(true);
KeyboardManager.setEnableDebugging(true);
KeyboardManager.setKeyboardDistanceFromTextField(10);
KeyboardManager.setPreventShowingBottomBlankSpace(true);
KeyboardManager.setEnableAutoToolbar(true);
KeyboardManager.setShouldToolbarUsesTextFieldTintColor(false);
KeyboardManager.setShouldShowTextFieldPlaceholder(true);
KeyboardManager.setOverrideKeyboardAppearance(false);
KeyboardManager.setShouldResignOnTouchOutside(true);
KeyboardManager.resignFirstResponder();
KeyboardManager.isKeyboardShowing()
.then((isShowing) => {
// ...
});
For more details, see the official IQKeyboardManager documentation.
Install
- Install dependency package
npm i -S react-native-keyboard-manager
- Link the native project
react-native link react-native-keyboard-manager
Contribute
New features, bug fixes and improvements are welcome! For questions and suggestions use the issues.
Known Issues
You can find known issues list here.
Licence
The MIT License (MIT)
Copyright (c) 2017 Douglas Nassif Roma Junior
See the full licence file.
IQKeyboardManager License
The MIT License (MIT)
Copyright (c) 2013-16 Iftekhar Qurashi
See the full licence file.
Languages
Objective-C
96.8%
C
1.5%
JavaScript
1.2%
Ruby
0.5%



