@react-native-ohos/react-native-keyboard-controller 1.16.6-rc.1 → 1.16.7-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/LICENSE +21 -21
  2. package/README.OpenSource +10 -10
  3. package/README.md +19 -19
  4. package/harmony/keyboard_controller/BuildProfile.ets +16 -16
  5. package/harmony/keyboard_controller/Index.ets +28 -7
  6. package/harmony/keyboard_controller/build-profile.json5 +31 -31
  7. package/harmony/keyboard_controller/hvigorfile.ts +6 -6
  8. package/harmony/keyboard_controller/obfuscation-rules.txt +17 -17
  9. package/harmony/keyboard_controller/oh-package.json5 +10 -10
  10. package/harmony/keyboard_controller/src/main/cpp/CMakeLists.txt +7 -7
  11. package/harmony/keyboard_controller/src/main/cpp/EventEmitters.cpp +95 -95
  12. package/harmony/keyboard_controller/src/main/cpp/EventEmitters.h +111 -90
  13. package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentDescriptor.h +94 -73
  14. package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.cpp +286 -171
  15. package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.h +103 -76
  16. package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewJSIBinder.h +65 -44
  17. package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentDescriptor.h +79 -58
  18. package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentInstance.cpp +107 -86
  19. package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentInstance.h +83 -62
  20. package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaJSIBinder.h +60 -39
  21. package/harmony/keyboard_controller/src/main/cpp/RNKeyboardController.cpp +46 -25
  22. package/harmony/keyboard_controller/src/main/cpp/RNKeyboardController.h +48 -27
  23. package/harmony/keyboard_controller/src/main/cpp/RNStatusBarManagerCompat.cpp +45 -24
  24. package/harmony/keyboard_controller/src/main/cpp/RNStatusBarManagerCompat.h +49 -28
  25. package/harmony/keyboard_controller/src/main/cpp/ViewHierarchyNavigator.cpp +186 -0
  26. package/harmony/keyboard_controller/src/main/cpp/ViewHierarchyNavigator.h +112 -0
  27. package/harmony/keyboard_controller/src/main/cpp/keyboardControllerPackage.cpp +64 -43
  28. package/harmony/keyboard_controller/src/main/cpp/keyboardControllerPackage.h +77 -56
  29. package/harmony/keyboard_controller/src/main/ets/Logger.ts +66 -45
  30. package/harmony/keyboard_controller/src/main/ets/RNKeyboardControllerPackage.ts +66 -45
  31. package/harmony/keyboard_controller/src/main/ets/RNKeyboardControllerTurboModule.ts +273 -238
  32. package/harmony/keyboard_controller/src/main/ets/RNStatusBarManagerCompatTurboModule.ts +119 -98
  33. package/harmony/keyboard_controller/src/main/ets/Type.ts +62 -41
  34. package/harmony/keyboard_controller/src/main/module.json5 +11 -11
  35. package/harmony/keyboard_controller/src/main/resources/base/element/string.json +8 -8
  36. package/harmony/keyboard_controller/src/main/resources/en_US/element/string.json +8 -8
  37. package/harmony/keyboard_controller/src/main/resources/zh_CN/element/string.json +8 -8
  38. package/harmony/keyboard_controller/ts.ts +29 -8
  39. package/harmony/keyboard_controller.har +0 -0
  40. package/lib/commonjs/animated.js +2 -2
  41. package/lib/commonjs/animated.js.map +1 -1
  42. package/lib/commonjs/bindings.js +3 -3
  43. package/lib/commonjs/bindings.js.map +1 -1
  44. package/lib/commonjs/bindings.native.js +3 -3
  45. package/lib/commonjs/bindings.native.js.map +1 -1
  46. package/lib/commonjs/components/KeyboardAvoidingView/hooks.js.map +1 -1
  47. package/lib/commonjs/components/KeyboardAvoidingView/index.js +3 -3
  48. package/lib/commonjs/components/KeyboardAvoidingView/index.js.map +1 -1
  49. package/lib/commonjs/components/KeyboardAwareScrollView/index.js +39 -39
  50. package/lib/commonjs/components/KeyboardAwareScrollView/index.js.map +1 -1
  51. package/lib/commonjs/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js +3 -3
  52. package/lib/commonjs/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js.map +1 -1
  53. package/lib/commonjs/components/KeyboardAwareScrollView/utils.js.map +1 -1
  54. package/lib/commonjs/components/KeyboardStickyView/index.js.map +1 -1
  55. package/lib/commonjs/components/KeyboardToolbar/Arrow.js.map +1 -1
  56. package/lib/commonjs/components/KeyboardToolbar/Button.js.map +1 -1
  57. package/lib/commonjs/components/KeyboardToolbar/colors.js.map +1 -1
  58. package/lib/commonjs/components/KeyboardToolbar/colors.native.js.map +1 -1
  59. package/lib/commonjs/components/KeyboardToolbar/index.js +3 -3
  60. package/lib/commonjs/components/KeyboardToolbar/index.js.map +1 -1
  61. package/lib/commonjs/components/KeyboardToolbar/types.js.map +1 -1
  62. package/lib/commonjs/components/hooks/useColorScheme.js.map +1 -1
  63. package/lib/commonjs/components/index.js.map +1 -1
  64. package/lib/commonjs/constants.js.map +1 -1
  65. package/lib/commonjs/context.js.map +1 -1
  66. package/lib/commonjs/hooks/index.js.map +1 -1
  67. package/lib/commonjs/hooks/useWindowDimensions/index.android.js.map +1 -1
  68. package/lib/commonjs/hooks/useWindowDimensions/index.js.map +1 -1
  69. package/lib/commonjs/index.js.map +1 -1
  70. package/lib/commonjs/internal.js +18 -18
  71. package/lib/commonjs/internal.js.map +1 -1
  72. package/lib/commonjs/module.js.map +1 -1
  73. package/lib/commonjs/monkey-patch.android.js +4 -4
  74. package/lib/commonjs/monkey-patch.android.js.map +1 -1
  75. package/lib/commonjs/monkey-patch.js.map +1 -1
  76. package/lib/commonjs/reanimated.js.map +1 -1
  77. package/lib/commonjs/reanimated.native.js.map +1 -1
  78. package/lib/commonjs/specs/KeyboardControllerViewNativeComponent.js.map +1 -1
  79. package/lib/commonjs/specs/KeyboardGestureAreaNativeComponent.js.map +1 -1
  80. package/lib/commonjs/specs/NativeKeyboardController.js.map +1 -1
  81. package/lib/commonjs/specs/NativeStatusBarManagerCompat.js.map +1 -1
  82. package/lib/commonjs/specs/OverKeyboardViewNativeComponent.js.map +1 -1
  83. package/lib/commonjs/types.js.map +1 -1
  84. package/lib/commonjs/utils.js.map +1 -1
  85. package/lib/commonjs/views/OverKeyboardView/index.js.map +1 -1
  86. package/lib/commonjs/views/index.js.map +1 -1
  87. package/lib/module/animated.js +2 -2
  88. package/lib/module/animated.js.map +1 -1
  89. package/lib/module/bindings.js +3 -3
  90. package/lib/module/bindings.js.map +1 -1
  91. package/lib/module/bindings.native.js +3 -3
  92. package/lib/module/bindings.native.js.map +1 -1
  93. package/lib/module/components/KeyboardAvoidingView/hooks.js.map +1 -1
  94. package/lib/module/components/KeyboardAvoidingView/index.js +3 -3
  95. package/lib/module/components/KeyboardAvoidingView/index.js.map +1 -1
  96. package/lib/module/components/KeyboardAwareScrollView/index.js +39 -39
  97. package/lib/module/components/KeyboardAwareScrollView/index.js.map +1 -1
  98. package/lib/module/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js +3 -3
  99. package/lib/module/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js.map +1 -1
  100. package/lib/module/components/KeyboardAwareScrollView/utils.js.map +1 -1
  101. package/lib/module/components/KeyboardStickyView/index.js.map +1 -1
  102. package/lib/module/components/KeyboardToolbar/Arrow.js.map +1 -1
  103. package/lib/module/components/KeyboardToolbar/Button.js.map +1 -1
  104. package/lib/module/components/KeyboardToolbar/colors.js.map +1 -1
  105. package/lib/module/components/KeyboardToolbar/colors.native.js.map +1 -1
  106. package/lib/module/components/KeyboardToolbar/index.js +3 -3
  107. package/lib/module/components/KeyboardToolbar/index.js.map +1 -1
  108. package/lib/module/components/KeyboardToolbar/types.js.map +1 -1
  109. package/lib/module/components/hooks/useColorScheme.js.map +1 -1
  110. package/lib/module/components/index.js.map +1 -1
  111. package/lib/module/constants.js.map +1 -1
  112. package/lib/module/context.js.map +1 -1
  113. package/lib/module/hooks/index.js.map +1 -1
  114. package/lib/module/hooks/useWindowDimensions/index.android.js.map +1 -1
  115. package/lib/module/hooks/useWindowDimensions/index.js.map +1 -1
  116. package/lib/module/index.js.map +1 -1
  117. package/lib/module/internal.js +18 -18
  118. package/lib/module/internal.js.map +1 -1
  119. package/lib/module/module.js.map +1 -1
  120. package/lib/module/monkey-patch.android.js +4 -4
  121. package/lib/module/monkey-patch.android.js.map +1 -1
  122. package/lib/module/monkey-patch.js.map +1 -1
  123. package/lib/module/reanimated.js.map +1 -1
  124. package/lib/module/reanimated.native.js.map +1 -1
  125. package/lib/module/specs/KeyboardControllerViewNativeComponent.js.map +1 -1
  126. package/lib/module/specs/KeyboardGestureAreaNativeComponent.js.map +1 -1
  127. package/lib/module/specs/NativeKeyboardController.js.map +1 -1
  128. package/lib/module/specs/NativeStatusBarManagerCompat.js.map +1 -1
  129. package/lib/module/specs/OverKeyboardViewNativeComponent.js.map +1 -1
  130. package/lib/module/types.js.map +1 -1
  131. package/lib/module/utils.js.map +1 -1
  132. package/lib/module/views/OverKeyboardView/index.js.map +1 -1
  133. package/lib/module/views/index.js.map +1 -1
  134. package/package.json +173 -173
  135. package/src/animated.tsx +255 -256
  136. package/src/bindings.native.ts +62 -62
  137. package/src/bindings.ts +42 -42
  138. package/src/components/KeyboardAvoidingView/hooks.ts +123 -123
  139. package/src/components/KeyboardAvoidingView/index.tsx +188 -188
  140. package/src/components/KeyboardAwareScrollView/index.tsx +389 -389
  141. package/src/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts +133 -133
  142. package/src/components/KeyboardAwareScrollView/utils.ts +41 -41
  143. package/src/components/KeyboardStickyView/index.tsx +66 -66
  144. package/src/components/KeyboardToolbar/Arrow.tsx +80 -80
  145. package/src/components/KeyboardToolbar/Button.tsx +98 -98
  146. package/src/components/KeyboardToolbar/colors.native.ts +37 -37
  147. package/src/components/KeyboardToolbar/colors.ts +16 -16
  148. package/src/components/KeyboardToolbar/index.tsx +223 -223
  149. package/src/components/KeyboardToolbar/types.ts +40 -40
  150. package/src/components/hooks/useColorScheme.ts +5 -5
  151. package/src/components/index.ts +11 -11
  152. package/src/constants.ts +19 -19
  153. package/src/context.ts +68 -68
  154. package/src/hooks/index.ts +90 -90
  155. package/src/hooks/useWindowDimensions/index.android.ts +38 -38
  156. package/src/hooks/useWindowDimensions/index.ts +1 -1
  157. package/src/index.ts +23 -23
  158. package/src/internal.ts +84 -84
  159. package/src/module.ts +52 -52
  160. package/src/monkey-patch.android.ts +44 -44
  161. package/src/monkey-patch.ts +4 -4
  162. package/src/reanimated.native.ts +132 -132
  163. package/src/reanimated.ts +29 -29
  164. package/src/specs/KeyboardControllerViewNativeComponent.ts +71 -71
  165. package/src/specs/KeyboardGestureAreaNativeComponent.ts +20 -20
  166. package/src/specs/NativeKeyboardController.ts +19 -19
  167. package/src/specs/NativeStatusBarManagerCompat.ts +14 -14
  168. package/src/specs/OverKeyboardViewNativeComponent.ts +12 -12
  169. package/src/types.ts +243 -243
  170. package/src/utils.ts +1 -1
  171. package/src/views/OverKeyboardView/index.tsx +43 -43
  172. package/src/views/index.ts +1 -1
  173. package/react-native-keyboard-controller.podspec +0 -61
@@ -1 +1 @@
1
- {"version":3,"names":["uuid","Math","random","toString","slice"],"sources":["utils.ts"],"sourcesContent":["export const uuid = () => Math.random().toString(36).slice(-6);\n"],"mappings":"AAAA,OAAO,MAAMA,IAAI,GAAGA,CAAA,KAAMC,IAAI,CAACC,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,EAAE,CAAC,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["uuid","Math","random","toString","slice"],"sources":["utils.ts"],"sourcesContent":["export const uuid = () => Math.random().toString(36).slice(-6);\r\n"],"mappings":"AAAA,OAAO,MAAMA,IAAI,GAAGA,CAAA,KAAMC,IAAI,CAACC,MAAM,CAAC,CAAC,CAACC,QAAQ,CAAC,EAAE,CAAC,CAACC,KAAK,CAAC,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","Platform","StyleSheet","View","RCTOverKeyboardView","useWindowDimensions","OverKeyboardView","children","visible","height","width","inner","style","styles","absolute","OS","global","_IS_FABRIC","undefined","createElement","collapsable","create","position"],"sources":["index.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { Platform, StyleSheet, View } from \"react-native\";\n\nimport { RCTOverKeyboardView } from \"../../bindings\";\nimport { useWindowDimensions } from \"../../hooks\";\n\nimport type { OverKeyboardViewProps } from \"../../types\";\nimport type { PropsWithChildren } from \"react\";\n\nconst OverKeyboardView = ({\n children,\n visible,\n}: PropsWithChildren<OverKeyboardViewProps>) => {\n const { height, width } = useWindowDimensions();\n const inner = useMemo(() => ({ height, width }), [height, width]);\n const style = useMemo(\n () => [\n styles.absolute,\n // On iOS - stretch view to full window dimensions to make yoga work\n // On Android Fabric we temporarily use the same approach\n // @ts-expect-error `_IS_FABRIC` is injected by REA\n Platform.OS === \"ios\" || global._IS_FABRIC ? inner : undefined,\n ],\n [inner],\n );\n\n return (\n <RCTOverKeyboardView visible={visible}>\n {/* `OverKeyboardView` should always have a single child */}\n <View collapsable={false} style={style}>\n {children}\n </View>\n </RCTOverKeyboardView>\n );\n};\n\nconst styles = StyleSheet.create({\n absolute: {\n position: \"absolute\",\n },\n});\n\nexport default OverKeyboardView;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAEzD,SAASC,mBAAmB,QAAQ,gBAAgB;AACpD,SAASC,mBAAmB,QAAQ,aAAa;AAKjD,MAAMC,gBAAgB,GAAGA,CAAC;EACxBC,QAAQ;EACRC;AACwC,CAAC,KAAK;EAC9C,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGL,mBAAmB,CAAC,CAAC;EAC/C,MAAMM,KAAK,GAAGX,OAAO,CAAC,OAAO;IAAES,MAAM;IAAEC;EAAM,CAAC,CAAC,EAAE,CAACD,MAAM,EAAEC,KAAK,CAAC,CAAC;EACjE,MAAME,KAAK,GAAGZ,OAAO,CACnB,MAAM,CACJa,MAAM,CAACC,QAAQ;EACf;EACA;EACA;EACAb,QAAQ,CAACc,EAAE,KAAK,KAAK,IAAIC,MAAM,CAACC,UAAU,GAAGN,KAAK,GAAGO,SAAS,CAC/D,EACD,CAACP,KAAK,CACR,CAAC;EAED,oBACEZ,KAAA,CAAAoB,aAAA,CAACf,mBAAmB;IAACI,OAAO,EAAEA;EAAQ,gBAEpCT,KAAA,CAAAoB,aAAA,CAAChB,IAAI;IAACiB,WAAW,EAAE,KAAM;IAACR,KAAK,EAAEA;EAAM,GACpCL,QACG,CACa,CAAC;AAE1B,CAAC;AAED,MAAMM,MAAM,GAAGX,UAAU,CAACmB,MAAM,CAAC;EAC/BP,QAAQ,EAAE;IACRQ,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAehB,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","Platform","StyleSheet","View","RCTOverKeyboardView","useWindowDimensions","OverKeyboardView","children","visible","height","width","inner","style","styles","absolute","OS","global","_IS_FABRIC","undefined","createElement","collapsable","create","position"],"sources":["index.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\r\nimport { Platform, StyleSheet, View } from \"react-native\";\r\n\r\nimport { RCTOverKeyboardView } from \"../../bindings\";\r\nimport { useWindowDimensions } from \"../../hooks\";\r\n\r\nimport type { OverKeyboardViewProps } from \"../../types\";\r\nimport type { PropsWithChildren } from \"react\";\r\n\r\nconst OverKeyboardView = ({\r\n children,\r\n visible,\r\n}: PropsWithChildren<OverKeyboardViewProps>) => {\r\n const { height, width } = useWindowDimensions();\r\n const inner = useMemo(() => ({ height, width }), [height, width]);\r\n const style = useMemo(\r\n () => [\r\n styles.absolute,\r\n // On iOS - stretch view to full window dimensions to make yoga work\r\n // On Android Fabric we temporarily use the same approach\r\n // @ts-expect-error `_IS_FABRIC` is injected by REA\r\n Platform.OS === \"ios\" || global._IS_FABRIC ? inner : undefined,\r\n ],\r\n [inner],\r\n );\r\n\r\n return (\r\n <RCTOverKeyboardView visible={visible}>\r\n {/* `OverKeyboardView` should always have a single child */}\r\n <View collapsable={false} style={style}>\r\n {children}\r\n </View>\r\n </RCTOverKeyboardView>\r\n );\r\n};\r\n\r\nconst styles = StyleSheet.create({\r\n absolute: {\r\n position: \"absolute\",\r\n },\r\n});\r\n\r\nexport default OverKeyboardView;\r\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAEzD,SAASC,mBAAmB,QAAQ,gBAAgB;AACpD,SAASC,mBAAmB,QAAQ,aAAa;AAKjD,MAAMC,gBAAgB,GAAGA,CAAC;EACxBC,QAAQ;EACRC;AACwC,CAAC,KAAK;EAC9C,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGL,mBAAmB,CAAC,CAAC;EAC/C,MAAMM,KAAK,GAAGX,OAAO,CAAC,OAAO;IAAES,MAAM;IAAEC;EAAM,CAAC,CAAC,EAAE,CAACD,MAAM,EAAEC,KAAK,CAAC,CAAC;EACjE,MAAME,KAAK,GAAGZ,OAAO,CACnB,MAAM,CACJa,MAAM,CAACC,QAAQ;EACf;EACA;EACA;EACAb,QAAQ,CAACc,EAAE,KAAK,KAAK,IAAIC,MAAM,CAACC,UAAU,GAAGN,KAAK,GAAGO,SAAS,CAC/D,EACD,CAACP,KAAK,CACR,CAAC;EAED,oBACEZ,KAAA,CAAAoB,aAAA,CAACf,mBAAmB;IAACI,OAAO,EAAEA;EAAQ,gBAEpCT,KAAA,CAAAoB,aAAA,CAAChB,IAAI;IAACiB,WAAW,EAAE,KAAM;IAACR,KAAK,EAAEA;EAAM,GACpCL,QACG,CACa,CAAC;AAE1B,CAAC;AAED,MAAMM,MAAM,GAAGX,UAAU,CAACmB,MAAM,CAAC;EAC/BP,QAAQ,EAAE;IACRQ,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,eAAehB,gBAAgB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["default","OverKeyboardView"],"sources":["index.ts"],"sourcesContent":["export { default as OverKeyboardView } from \"./OverKeyboardView\";\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,gBAAgB,QAAQ,oBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["default","OverKeyboardView"],"sources":["index.ts"],"sourcesContent":["export { default as OverKeyboardView } from \"./OverKeyboardView\";\r\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,gBAAgB,QAAQ,oBAAoB","ignoreList":[]}
package/package.json CHANGED
@@ -1,173 +1,173 @@
1
- {
2
- "name": "@react-native-ohos/react-native-keyboard-controller",
3
- "version": "1.16.6-rc.1",
4
- "description": "Keyboard manager which works in identical way on iOS and Android and harmony",
5
- "main": "lib/commonjs/index",
6
- "module": "lib/module/index",
7
- "types": "lib/typescript/index.d.ts",
8
- "react-native": "src/index",
9
- "source": "src/index",
10
- "files": [
11
- "src",
12
- "lib",
13
- "android",
14
- "ios",
15
- "harmony",
16
- "cpp",
17
- "react-native-keyboard-controller.podspec",
18
- "jest",
19
- "!lib/typescript/example",
20
- "!android/build",
21
- "!android/.gradle",
22
- "!android/gradle",
23
- "!android/gradlew",
24
- "!android/gradlew.bat",
25
- "!ios/build",
26
- "!ios/KeyboardControllerNative",
27
- "!**/__tests__",
28
- "!**/__fixtures__",
29
- "!**/__mocks__"
30
- ],
31
- "scripts": {
32
- "format": "prettier '**/*' --ignore-unknown --write",
33
- "test": "jest",
34
- "typescript": "tsc --noEmit --project tsconfig.build.json",
35
- "lint": "eslint --quiet \"**/*.{js,ts,tsx}\"",
36
- "lint-clang": "find ios/ -iname *.h -o -iname *.m -o -iname *.mm | grep -v -e Pods -e build | xargs clang-format -i -n --Werror",
37
- "prepare": "bob build",
38
- "release": "release-it",
39
- "example": "yarn --cwd example",
40
- "pods": "cd example && pod-install --quiet",
41
- "bootstrap": "yarn example && yarn && yarn pods"
42
- },
43
- "keywords": [
44
- "react-native",
45
- "keyboard",
46
- "interactive",
47
- "dismiss",
48
- "animation",
49
- "focused input",
50
- "text changed",
51
- "selection changed",
52
- "avoiding view",
53
- "avoid keyboard",
54
- "sticky view",
55
- "over keyboard view",
56
- "keyboard aware scroll view",
57
- "keyboard toolbar",
58
- "keyboard done button",
59
- "keyboard next button",
60
- "keyboard previous button",
61
- "ios",
62
- "android",
63
- "harmony"
64
- ],
65
- "repository": "https://github.com/react-native-oh-library/react-native-keyboard-controller",
66
- "author": "Kiryl Ziusko <zyusko.kirik@gmail.com> (https://github.com/kirillzyusko)",
67
- "license": "MIT",
68
- "bugs": {
69
- "url": "https://github.com/react-native-oh-library/react-native-keyboard-controller/issues"
70
- },
71
- "homepage": "https://kirillzyusko.github.io/react-native-keyboard-controller/",
72
- "publishConfig": {
73
- "registry": "https://registry.npmjs.org/"
74
- },
75
- "devDependencies": {
76
- "@commitlint/config-conventional": "^11.0.0",
77
- "@react-native/babel-preset": "0.77.0",
78
- "@react-native/eslint-config": "0.77.0",
79
- "@release-it/conventional-changelog": "^2.0.0",
80
- "@testing-library/react-hooks": "^8.0.1",
81
- "@types/jest": "^29.5.13",
82
- "@types/react": "^18.2.6",
83
- "@typescript-eslint/eslint-plugin": "^6.7.4",
84
- "@typescript-eslint/parser": "^6.7.4",
85
- "clang-format": "^1.8.0",
86
- "commitlint": "^11.0.0",
87
- "eslint": "^8.19.0",
88
- "eslint-config-prettier": "^8.5.0",
89
- "eslint-import-resolver-typescript": "^3.6.1",
90
- "eslint-plugin-eslint-comments": "^3.2.0",
91
- "eslint-plugin-ft-flow": "^3.0.11",
92
- "eslint-plugin-import": "^2.28.1",
93
- "eslint-plugin-jest": "^26.5.3",
94
- "eslint-plugin-prettier": "^4.2.1",
95
- "eslint-plugin-react-compiler": "^0.0.0-experimental-0998c1e-20240625",
96
- "eslint-plugin-react-perf": "^3.3.2",
97
- "husky": "^6.0.0",
98
- "jest": "^29.6.3",
99
- "pod-install": "^0.1.0",
100
- "prettier": "^2.8.8",
101
- "react": "18.3.1",
102
- "react-native": "0.77.1",
103
- "react-native-builder-bob": "^0.18.0",
104
- "react-native-reanimated": "3.18.0",
105
- "react-test-renderer": "18.2.0",
106
- "release-it": "^14.2.2",
107
- "typescript": "5.6.3"
108
- },
109
- "peerDependencies": {
110
- "react": "*",
111
- "react-native": "*",
112
- "react-native-reanimated": ">=3.0.0",
113
- "react-native-keyboard-controller": "1.16.5"
114
- },
115
- "jest": {
116
- "preset": "react-native",
117
- "modulePathIgnorePatterns": [
118
- "<rootDir>/example/node_modules",
119
- "<rootDir>/lib/"
120
- ]
121
- },
122
- "commitlint": {
123
- "extends": [
124
- "@commitlint/config-conventional"
125
- ]
126
- },
127
- "release-it": {
128
- "git": {
129
- "commitMessage": "chore: release ${version}",
130
- "tagName": "v${version}"
131
- },
132
- "npm": {
133
- "publish": true
134
- },
135
- "github": {
136
- "release": true
137
- },
138
- "plugins": {
139
- "@release-it/conventional-changelog": {
140
- "preset": "angular"
141
- }
142
- }
143
- },
144
- "prettier": {
145
- "quoteProps": "consistent",
146
- "trailingComma": "all"
147
- },
148
- "react-native-builder-bob": {
149
- "source": "src",
150
- "output": "lib",
151
- "targets": [
152
- "commonjs",
153
- "module",
154
- [
155
- "typescript",
156
- {
157
- "project": "tsconfig.build.json"
158
- }
159
- ]
160
- ]
161
- },
162
- "codegenConfig": {
163
- "name": "reactnativekeyboardcontroller",
164
- "type": "all",
165
- "jsSrcsDir": "./src/specs",
166
- "android": {
167
- "javaPackageName": "com.reactnativekeyboardcontroller"
168
- }
169
- },
170
- "harmony": {
171
- "alias": "react-native-keyboard-controller"
172
- }
173
- }
1
+ {
2
+ "name": "@react-native-ohos/react-native-keyboard-controller",
3
+ "version": "1.16.7-beta.2",
4
+ "description": "Keyboard manager which works in identical way on iOS and Android and harmony",
5
+ "main": "lib/commonjs/index",
6
+ "module": "lib/module/index",
7
+ "types": "lib/typescript/index.d.ts",
8
+ "react-native": "src/index",
9
+ "source": "src/index",
10
+ "files": [
11
+ "src",
12
+ "lib",
13
+ "android",
14
+ "ios",
15
+ "harmony",
16
+ "cpp",
17
+ "react-native-keyboard-controller.podspec",
18
+ "jest",
19
+ "!lib/typescript/example",
20
+ "!android/build",
21
+ "!android/.gradle",
22
+ "!android/gradle",
23
+ "!android/gradlew",
24
+ "!android/gradlew.bat",
25
+ "!ios/build",
26
+ "!ios/KeyboardControllerNative",
27
+ "!**/__tests__",
28
+ "!**/__fixtures__",
29
+ "!**/__mocks__"
30
+ ],
31
+ "scripts": {
32
+ "format": "prettier '**/*' --ignore-unknown --write",
33
+ "test": "jest",
34
+ "typescript": "tsc --noEmit --project tsconfig.build.json",
35
+ "lint": "eslint --quiet \"**/*.{js,ts,tsx}\"",
36
+ "lint-clang": "find ios/ -iname *.h -o -iname *.m -o -iname *.mm | grep -v -e Pods -e build | xargs clang-format -i -n --Werror",
37
+ "prepare": "bob build",
38
+ "release": "release-it",
39
+ "example": "yarn --cwd example",
40
+ "pods": "cd example && pod-install --quiet",
41
+ "bootstrap": "yarn example && yarn && yarn pods"
42
+ },
43
+ "keywords": [
44
+ "react-native",
45
+ "keyboard",
46
+ "interactive",
47
+ "dismiss",
48
+ "animation",
49
+ "focused input",
50
+ "text changed",
51
+ "selection changed",
52
+ "avoiding view",
53
+ "avoid keyboard",
54
+ "sticky view",
55
+ "over keyboard view",
56
+ "keyboard aware scroll view",
57
+ "keyboard toolbar",
58
+ "keyboard done button",
59
+ "keyboard next button",
60
+ "keyboard previous button",
61
+ "ios",
62
+ "android",
63
+ "harmony"
64
+ ],
65
+ "repository": "https://github.com/react-native-oh-library/react-native-keyboard-controller",
66
+ "author": "Kiryl Ziusko <zyusko.kirik@gmail.com> (https://github.com/kirillzyusko)",
67
+ "license": "MIT",
68
+ "bugs": {
69
+ "url": "https://github.com/react-native-oh-library/react-native-keyboard-controller/issues"
70
+ },
71
+ "homepage": "https://github.com/react-native-oh-library/react-native-keyboard-controller/tree/br_rnoh0.77#readme",
72
+ "publishConfig": {
73
+ "registry": "https://registry.npmjs.org/"
74
+ },
75
+ "devDependencies": {
76
+ "@commitlint/config-conventional": "^11.0.0",
77
+ "@react-native/babel-preset": "0.77.0",
78
+ "@react-native/eslint-config": "0.77.0",
79
+ "@release-it/conventional-changelog": "^2.0.0",
80
+ "@testing-library/react-hooks": "^8.0.1",
81
+ "@types/jest": "^29.5.13",
82
+ "@types/react": "^18.2.6",
83
+ "@typescript-eslint/eslint-plugin": "^6.7.4",
84
+ "@typescript-eslint/parser": "^6.7.4",
85
+ "clang-format": "^1.8.0",
86
+ "commitlint": "^11.0.0",
87
+ "eslint": "^8.19.0",
88
+ "eslint-config-prettier": "^8.5.0",
89
+ "eslint-import-resolver-typescript": "^3.6.1",
90
+ "eslint-plugin-eslint-comments": "^3.2.0",
91
+ "eslint-plugin-ft-flow": "^3.0.11",
92
+ "eslint-plugin-import": "^2.28.1",
93
+ "eslint-plugin-jest": "^26.5.3",
94
+ "eslint-plugin-prettier": "^4.2.1",
95
+ "eslint-plugin-react-compiler": "^0.0.0-experimental-0998c1e-20240625",
96
+ "eslint-plugin-react-perf": "^3.3.2",
97
+ "husky": "^6.0.0",
98
+ "jest": "^29.6.3",
99
+ "pod-install": "^0.1.0",
100
+ "prettier": "^2.8.8",
101
+ "react": "18.3.1",
102
+ "react-native": "0.77.1",
103
+ "react-native-builder-bob": "^0.18.0",
104
+ "react-native-reanimated": "3.18.0",
105
+ "react-test-renderer": "18.2.0",
106
+ "release-it": "^14.2.2",
107
+ "typescript": "5.6.3"
108
+ },
109
+ "peerDependencies": {
110
+ "react": "*",
111
+ "react-native": "*",
112
+ "react-native-reanimated": ">=3.0.0",
113
+ "react-native-keyboard-controller": "1.16.5"
114
+ },
115
+ "jest": {
116
+ "preset": "react-native",
117
+ "modulePathIgnorePatterns": [
118
+ "<rootDir>/example/node_modules",
119
+ "<rootDir>/lib/"
120
+ ]
121
+ },
122
+ "commitlint": {
123
+ "extends": [
124
+ "@commitlint/config-conventional"
125
+ ]
126
+ },
127
+ "release-it": {
128
+ "git": {
129
+ "commitMessage": "chore: release ${version}",
130
+ "tagName": "v${version}"
131
+ },
132
+ "npm": {
133
+ "publish": true
134
+ },
135
+ "github": {
136
+ "release": true
137
+ },
138
+ "plugins": {
139
+ "@release-it/conventional-changelog": {
140
+ "preset": "angular"
141
+ }
142
+ }
143
+ },
144
+ "prettier": {
145
+ "quoteProps": "consistent",
146
+ "trailingComma": "all"
147
+ },
148
+ "react-native-builder-bob": {
149
+ "source": "src",
150
+ "output": "lib",
151
+ "targets": [
152
+ "commonjs",
153
+ "module",
154
+ [
155
+ "typescript",
156
+ {
157
+ "project": "tsconfig.build.json"
158
+ }
159
+ ]
160
+ ]
161
+ },
162
+ "codegenConfig": {
163
+ "name": "reactnativekeyboardcontroller",
164
+ "type": "all",
165
+ "jsSrcsDir": "./src/specs",
166
+ "android": {
167
+ "javaPackageName": "com.reactnativekeyboardcontroller"
168
+ }
169
+ },
170
+ "harmony": {
171
+ "alias": "react-native-keyboard-controller"
172
+ }
173
+ }