diff --git a/en/react-native-dismiss-keyboard.md b/en/react-native-dismiss-keyboard.md index 2996ef63803b7b784bf4e81a24952ac28531998c..bafba6aedeae7f34d38e403821f895c0324f657c 100644 --- a/en/react-native-dismiss-keyboard.md +++ b/en/react-native-dismiss-keyboard.md @@ -16,6 +16,12 @@ ## Installation and Usage +| Version | Support RN version | +| ------------------------- | -------------------------- | +| 1.0.0 | 0.72/0.77 | + +For older versions that are not published to npm, please refer to the [installation guide](/en/tgz-usage-en.md) to install the tgz package. + Go to the project directory and execute the following instruction: @@ -145,7 +151,7 @@ This document is verified based on the following versions: | `addListener` | Register a JavaScript function that listens to handle native keyboard notification events. | function | no | All | yes | | `dismiss` | Retract the pop-up keyboard and make the current text box lose focus. | function | no | All | yes | | `scheduleLayoutAnimation` | Used to synchronize changes in the size or position of a TextInput (or other keyboard attachment view) with keyboard movements. | function | no | All | yes | -| `isVisible` | Whether the keyboard is currently displayed. | function | no | All | yes | +| `isVisible` | Whether the keyboard is currently displayed. | bool | no | All | yes | | `metrics` | If a soft keyboard is displayed, return the size of the soft keyboard. | function | no | All | yes | ## Known Issues diff --git a/zh-cn/react-native-dismiss-keyboard.md b/zh-cn/react-native-dismiss-keyboard.md index 8e1295aeb0842531536d4050deaf6e4cbb52f4ee..11e28badc48187ee28618efeaf8e35d99c328c2b 100644 --- a/zh-cn/react-native-dismiss-keyboard.md +++ b/zh-cn/react-native-dismiss-keyboard.md @@ -17,6 +17,12 @@ ## 安装与使用 +| 三方库版本 | 支持RN版本 | +| ------------------------- | -------------------------- | +| 1.0.0 | 0.72/0.77 | + +对于未发布到npm的旧版本,请参考[安装指南](/zh-cn/tgz-usage.md)安装tgz包。 + 进入到工程目录并输入以下命令: @@ -149,7 +155,7 @@ const styles = StyleSheet.create({ | `addListener` | Register a JavaScript function that listens to handle native keyboard notification events. | function | no | All | yes | | `dismiss` | Retract the pop-up keyboard and make the current text box lose focus. | function | no | All | yes | | `scheduleLayoutAnimation` |Used to synchronize changes in the size or position of a TextInput (or other keyboard attachment view) with keyboard movements.| function | no | All | yes | -| `isVisible` | Whether the keyboard is currently displayed.| function | no | All | yes | +| `isVisible` | Whether the keyboard is currently displayed.| bool | no | All | yes | | `metrics` | If a soft keyboard is displayed, return the size of the soft keyboard.| function | no | All | yes | ## 遗留问题