@3beeepb/react-native-keyboard-dismiss 中文文档教程
react-native-keyboard-dismiss
这个简单的库允许 iOS 和 Android 应用程序在触摸外部输入时关闭键盘。
Add it to your project
运行
npm install @3beeepb/react-native-keyboard-dismiss --save
导入库
import KeyboardDismiss from '@3beeepb/react-native-keyboard-dismiss';
像这样使用它:
<KeyboardDismiss> {children} </KeyboardDismiss>
Contribution
请确保在通过运行 npm test 提出 PR 之前运行测试。
react-native-keyboard-dismiss
This library simple allows iOS and Android apps to dismiss keyboard when touching outside the inputs.
Add it to your project
Run
npm install @3beeepb/react-native-keyboard-dismiss --save
Import the library
import KeyboardDismiss from '@3beeepb/react-native-keyboard-dismiss';
Just use it like this:
<KeyboardDismiss> {children} </KeyboardDismiss>
Contribution
Please make sure to run the tests before proposing a PR by running npm test
.