douglasjunior /react-native-keyboard-manager
(DEPRECATED) ⚛ Library to prevent issues of keyboard sliding up and cover inputs on React-Native iOS projects.
★ 998⑂ 60👁 7⑃ 35● 88▤ 38
+0
日增长
+0
周增长
998
stars
60
forks
7
watchers
35
prs
88
issues
38
releases
README
Prevent keyboard sliding up and covering inputs on React Native iOS projects. Powered by IQKeyboardManager. React Native Keyboard Manager prevents the iOS keyboard from sliding up and covering text inputs, bringing the battle-tested power of IQKeyboardManager to React Native with zero boilerplate, native smoothness, and complete toolbar control. =0.60-61DAFB?style=flat-square&logo=react&logoColor=black" alt="React Native = 0.60" Quick Start · Why · Screenshots · Compatibility · Installation · Post Install · Usage · API · Known Issues · Contributing --- [!WARNING] ⚠️ DEPRECATION NOTICE: Maintenance Mode This library was created to address iOS-only keyboard issues (e.g., the keyboard covering inputs) by integrating IQKeyboardManager. With Android moving to edge-to-edge by default, similar "keyboard covering inputs" problems can now happen on Android as well. Because of that, maintaining a library that only targets iOS no longer makes sense. For this reason, this project is now in maintenance mode: bug fixes and small PRs are welcome, but no new features are planned. Thank you for all the partnership and collaboration over these 9 years of this project's journey, it truly made a difference. ❤️ Recommended alternatives: - KeyboardAvoidingView (React Native built-in) - An edge-to-edge approach with react-native-keyboard-controller (cross-platform) --- 💡 Why Keyboard Manager? - ⚛️ Zero UI boilerplate. No need to manually wrap every view in nested avoiding views or calculate keyboard height offsets by hand. - 🍎 Powered by IQKeyboardManager. Relies on the most mature, battle-tested native iOS keyboard framework. - ⌨️ Native input toolbar. Provides Done button dismissal and active placeholder display, with opt-in previous () navigation buttons. - 👆 Dismiss on touch outside. Tap anywhere outside active text fields to dismiss the keyboard cleanly. - 🎛️ Fully customizable. Adjust keyboard distances, colors, dark/light appearance modes, and toolbar behaviors with simple JS/TS calls. - 🪟 Modal-friendly. Includes native support to preserve field traversal even inside complex modals. - 🧪 Mock included. Comes with a pre-configured Jest mock ready for testing suites. 📸 Screenshots | Feature | Enabled (with Keyboard Manager) | Disabled (default iOS behavior) | |---|:---:|:---:| | Inputs Lifted | | | | Native Toolbar | | _Input covered beneath keyboard_ | Credits: IQKeyboardManager 📋 Compatibility | React Native Version | Recommended Library Version | |---|---| | RN = 0.72.0 | react-native-keyboard-manager@latest | | RN 0.60.0 ... 0.71.x | [email protected] | | RN 0.53.0 ... 0.59.10 | [email protected] | | RN 0.47.0 ... 0.52.2 | [email protected] | | RN 0.40.0 ... 0.46.4 | [email protected] | 🚀 Quick Start bash 1. Install dependency yarn add react-native-keyboard-manager or: npm i -S r
Latest release
6.5.16-0 6.5.16-0 2024-05-06Changes - Upgrade IQKeyboardManager to 6.5.16 - Update PrivacyInfo.xcprivacy from IQKeyboardManager - Update Sample project to RN 0.74 and add react-navigation examples Breaking Changes 🚨 - Forked IQKeyboardManager to update PrivacyInfo.xcprivacy with the latest version, refer to installation step for more details. Extra - Deprecate version 7.0.2-0 due to incompatibilities with RN ScrollView: https://github.com/hackiftekhar/IQKeyboardManager/issues/2042