@react-native-ohos/react-native-keyboard-controller 1.12.8-rc.1

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 (248) hide show
  1. package/LICENSE +21 -0
  2. package/README.OpenSource +11 -0
  3. package/README.md +19 -0
  4. package/harmony/keyboard_controller/BuildProfile.ets +17 -0
  5. package/harmony/keyboard_controller/Index.ets +9 -0
  6. package/harmony/keyboard_controller/ResourceTable.txt +9 -0
  7. package/harmony/keyboard_controller/build-profile.json5 +31 -0
  8. package/harmony/keyboard_controller/consumer-rules.txt +0 -0
  9. package/harmony/keyboard_controller/hvigorfile.ts +6 -0
  10. package/harmony/keyboard_controller/obfuscation-rules.txt +18 -0
  11. package/harmony/keyboard_controller/oh-package.json5 +11 -0
  12. package/harmony/keyboard_controller/src/main/cpp/CMakeLists.txt +7 -0
  13. package/harmony/keyboard_controller/src/main/cpp/EventEmitters.cpp +96 -0
  14. package/harmony/keyboard_controller/src/main/cpp/EventEmitters.h +90 -0
  15. package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentDescriptor.h +77 -0
  16. package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.cpp +158 -0
  17. package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.h +74 -0
  18. package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewJSIBinder.h +43 -0
  19. package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentDescriptor.h +64 -0
  20. package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentInstance.cpp +89 -0
  21. package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentInstance.h +63 -0
  22. package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaJSIBinder.h +39 -0
  23. package/harmony/keyboard_controller/src/main/cpp/RNKeyboardController.cpp +25 -0
  24. package/harmony/keyboard_controller/src/main/cpp/RNKeyboardController.h +27 -0
  25. package/harmony/keyboard_controller/src/main/cpp/RNKeyboardControllerPackage.cpp +43 -0
  26. package/harmony/keyboard_controller/src/main/cpp/RNKeyboardControllerPackage.h +56 -0
  27. package/harmony/keyboard_controller/src/main/cpp/RNStatusBarManagerCompat.cpp +24 -0
  28. package/harmony/keyboard_controller/src/main/cpp/RNStatusBarManagerCompat.h +28 -0
  29. package/harmony/keyboard_controller/src/main/cpp/keyboardControllerPackage.cpp +43 -0
  30. package/harmony/keyboard_controller/src/main/cpp/keyboardControllerPackage.h +56 -0
  31. package/harmony/keyboard_controller/src/main/ets/Logger.ts +46 -0
  32. package/harmony/keyboard_controller/src/main/ets/RNKeyboardControllerPackage.ets +46 -0
  33. package/harmony/keyboard_controller/src/main/ets/RNKeyboardControllerTurboModule.ts +210 -0
  34. package/harmony/keyboard_controller/src/main/ets/RNStatusBarManagerCompatTurboModule.ts +98 -0
  35. package/harmony/keyboard_controller/src/main/ets/Type.ts +41 -0
  36. package/harmony/keyboard_controller/src/main/module.json +29 -0
  37. package/harmony/keyboard_controller/src/main/module.json5 +11 -0
  38. package/harmony/keyboard_controller/src/main/resources/base/element/string.json +8 -0
  39. package/harmony/keyboard_controller/src/main/resources/en_US/element/string.json +8 -0
  40. package/harmony/keyboard_controller/src/main/resources/zh_CN/element/string.json +8 -0
  41. package/harmony/keyboard_controller/ts.ets +9 -0
  42. package/harmony/keyboard_controller.har +0 -0
  43. package/lib/commonjs/animated.js +174 -0
  44. package/lib/commonjs/animated.js.map +1 -0
  45. package/lib/commonjs/bindings.js +38 -0
  46. package/lib/commonjs/bindings.js.map +1 -0
  47. package/lib/commonjs/bindings.native.js +37 -0
  48. package/lib/commonjs/bindings.native.js.map +1 -0
  49. package/lib/commonjs/components/KeyboardAvoidingView/hooks.js +66 -0
  50. package/lib/commonjs/components/KeyboardAvoidingView/hooks.js.map +1 -0
  51. package/lib/commonjs/components/KeyboardAvoidingView/index.js +102 -0
  52. package/lib/commonjs/components/KeyboardAvoidingView/index.js.map +1 -0
  53. package/lib/commonjs/components/KeyboardAwareScrollView/index.js +255 -0
  54. package/lib/commonjs/components/KeyboardAwareScrollView/index.js.map +1 -0
  55. package/lib/commonjs/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js +110 -0
  56. package/lib/commonjs/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js.map +1 -0
  57. package/lib/commonjs/components/KeyboardAwareScrollView/utils.js +37 -0
  58. package/lib/commonjs/components/KeyboardAwareScrollView/utils.js.map +1 -0
  59. package/lib/commonjs/components/KeyboardStickyView/index.js +40 -0
  60. package/lib/commonjs/components/KeyboardStickyView/index.js.map +1 -0
  61. package/lib/commonjs/components/KeyboardToolbar/Arrow.js +76 -0
  62. package/lib/commonjs/components/KeyboardToolbar/Arrow.js.map +1 -0
  63. package/lib/commonjs/components/KeyboardToolbar/Button.js +70 -0
  64. package/lib/commonjs/components/KeyboardToolbar/Button.js.map +1 -0
  65. package/lib/commonjs/components/KeyboardToolbar/colors.js +21 -0
  66. package/lib/commonjs/components/KeyboardToolbar/colors.js.map +1 -0
  67. package/lib/commonjs/components/KeyboardToolbar/colors.native.js +40 -0
  68. package/lib/commonjs/components/KeyboardToolbar/colors.native.js.map +1 -0
  69. package/lib/commonjs/components/KeyboardToolbar/index.js +152 -0
  70. package/lib/commonjs/components/KeyboardToolbar/index.js.map +1 -0
  71. package/lib/commonjs/components/KeyboardToolbar/types.js +6 -0
  72. package/lib/commonjs/components/KeyboardToolbar/types.js.map +1 -0
  73. package/lib/commonjs/components/hooks/useColorScheme.js +10 -0
  74. package/lib/commonjs/components/hooks/useColorScheme.js.map +1 -0
  75. package/lib/commonjs/components/index.js +42 -0
  76. package/lib/commonjs/components/index.js.map +1 -0
  77. package/lib/commonjs/constants.js +25 -0
  78. package/lib/commonjs/constants.js.map +1 -0
  79. package/lib/commonjs/context.js +42 -0
  80. package/lib/commonjs/context.js.map +1 -0
  81. package/lib/commonjs/hooks/index.js +104 -0
  82. package/lib/commonjs/hooks/index.js.map +1 -0
  83. package/lib/commonjs/hooks/useWindowDimensions/index.android.js +29 -0
  84. package/lib/commonjs/hooks/useWindowDimensions/index.android.js.map +1 -0
  85. package/lib/commonjs/hooks/useWindowDimensions/index.js +13 -0
  86. package/lib/commonjs/hooks/useWindowDimensions/index.js.map +1 -0
  87. package/lib/commonjs/index.js +116 -0
  88. package/lib/commonjs/index.js.map +1 -0
  89. package/lib/commonjs/internal.js +73 -0
  90. package/lib/commonjs/internal.js.map +1 -0
  91. package/lib/commonjs/monkey-patch.android.js +57 -0
  92. package/lib/commonjs/monkey-patch.android.js.map +1 -0
  93. package/lib/commonjs/monkey-patch.js +11 -0
  94. package/lib/commonjs/monkey-patch.js.map +1 -0
  95. package/lib/commonjs/reanimated.js +12 -0
  96. package/lib/commonjs/reanimated.js.map +1 -0
  97. package/lib/commonjs/reanimated.native.js +88 -0
  98. package/lib/commonjs/reanimated.native.js.map +1 -0
  99. package/lib/commonjs/specs/KeyboardControllerViewNativeComponent.js +10 -0
  100. package/lib/commonjs/specs/KeyboardControllerViewNativeComponent.js.map +1 -0
  101. package/lib/commonjs/specs/KeyboardGestureAreaNativeComponent.js +12 -0
  102. package/lib/commonjs/specs/KeyboardGestureAreaNativeComponent.js.map +1 -0
  103. package/lib/commonjs/specs/NativeKeyboardController.js +9 -0
  104. package/lib/commonjs/specs/NativeKeyboardController.js.map +1 -0
  105. package/lib/commonjs/specs/NativeStatusBarManagerCompat.js +9 -0
  106. package/lib/commonjs/specs/NativeStatusBarManagerCompat.js.map +1 -0
  107. package/lib/commonjs/types.js +6 -0
  108. package/lib/commonjs/types.js.map +1 -0
  109. package/lib/commonjs/utils.js +9 -0
  110. package/lib/commonjs/utils.js.map +1 -0
  111. package/lib/module/animated.js +166 -0
  112. package/lib/module/animated.js.map +1 -0
  113. package/lib/module/bindings.js +32 -0
  114. package/lib/module/bindings.js.map +1 -0
  115. package/lib/module/bindings.native.js +31 -0
  116. package/lib/module/bindings.native.js.map +1 -0
  117. package/lib/module/components/KeyboardAvoidingView/hooks.js +59 -0
  118. package/lib/module/components/KeyboardAvoidingView/hooks.js.map +1 -0
  119. package/lib/module/components/KeyboardAvoidingView/index.js +95 -0
  120. package/lib/module/components/KeyboardAvoidingView/index.js.map +1 -0
  121. package/lib/module/components/KeyboardAwareScrollView/index.js +248 -0
  122. package/lib/module/components/KeyboardAwareScrollView/index.js.map +1 -0
  123. package/lib/module/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js +103 -0
  124. package/lib/module/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js.map +1 -0
  125. package/lib/module/components/KeyboardAwareScrollView/utils.js +29 -0
  126. package/lib/module/components/KeyboardAwareScrollView/utils.js.map +1 -0
  127. package/lib/module/components/KeyboardStickyView/index.js +33 -0
  128. package/lib/module/components/KeyboardStickyView/index.js.map +1 -0
  129. package/lib/module/components/KeyboardToolbar/Arrow.js +68 -0
  130. package/lib/module/components/KeyboardToolbar/Arrow.js.map +1 -0
  131. package/lib/module/components/KeyboardToolbar/Button.js +62 -0
  132. package/lib/module/components/KeyboardToolbar/Button.js.map +1 -0
  133. package/lib/module/components/KeyboardToolbar/colors.js +15 -0
  134. package/lib/module/components/KeyboardToolbar/colors.js.map +1 -0
  135. package/lib/module/components/KeyboardToolbar/colors.native.js +34 -0
  136. package/lib/module/components/KeyboardToolbar/colors.native.js.map +1 -0
  137. package/lib/module/components/KeyboardToolbar/index.js +140 -0
  138. package/lib/module/components/KeyboardToolbar/index.js.map +1 -0
  139. package/lib/module/components/KeyboardToolbar/types.js +2 -0
  140. package/lib/module/components/KeyboardToolbar/types.js.map +1 -0
  141. package/lib/module/components/hooks/useColorScheme.js +4 -0
  142. package/lib/module/components/hooks/useColorScheme.js.map +1 -0
  143. package/lib/module/components/index.js +5 -0
  144. package/lib/module/components/index.js.map +1 -0
  145. package/lib/module/constants.js +19 -0
  146. package/lib/module/constants.js.map +1 -0
  147. package/lib/module/context.js +35 -0
  148. package/lib/module/context.js.map +1 -0
  149. package/lib/module/hooks/index.js +68 -0
  150. package/lib/module/hooks/index.js.map +1 -0
  151. package/lib/module/hooks/useWindowDimensions/index.android.js +22 -0
  152. package/lib/module/hooks/useWindowDimensions/index.android.js.map +1 -0
  153. package/lib/module/hooks/useWindowDimensions/index.js +2 -0
  154. package/lib/module/hooks/useWindowDimensions/index.js.map +1 -0
  155. package/lib/module/index.js +10 -0
  156. package/lib/module/index.js.map +1 -0
  157. package/lib/module/internal.js +66 -0
  158. package/lib/module/internal.js.map +1 -0
  159. package/lib/module/monkey-patch.android.js +47 -0
  160. package/lib/module/monkey-patch.android.js.map +1 -0
  161. package/lib/module/monkey-patch.js +5 -0
  162. package/lib/module/monkey-patch.js.map +1 -0
  163. package/lib/module/reanimated.js +6 -0
  164. package/lib/module/reanimated.js.map +1 -0
  165. package/lib/module/reanimated.native.js +78 -0
  166. package/lib/module/reanimated.native.js.map +1 -0
  167. package/lib/module/specs/KeyboardControllerViewNativeComponent.js +3 -0
  168. package/lib/module/specs/KeyboardControllerViewNativeComponent.js.map +1 -0
  169. package/lib/module/specs/KeyboardGestureAreaNativeComponent.js +5 -0
  170. package/lib/module/specs/KeyboardGestureAreaNativeComponent.js.map +1 -0
  171. package/lib/module/specs/NativeKeyboardController.js +3 -0
  172. package/lib/module/specs/NativeKeyboardController.js.map +1 -0
  173. package/lib/module/specs/NativeStatusBarManagerCompat.js +3 -0
  174. package/lib/module/specs/NativeStatusBarManagerCompat.js.map +1 -0
  175. package/lib/module/types.js +2 -0
  176. package/lib/module/types.js.map +1 -0
  177. package/lib/module/utils.js +2 -0
  178. package/lib/module/utils.js.map +1 -0
  179. package/lib/typescript/animated.d.ts +31 -0
  180. package/lib/typescript/bindings.d.ts +12 -0
  181. package/lib/typescript/bindings.native.d.ts +12 -0
  182. package/lib/typescript/components/KeyboardAvoidingView/hooks.d.ts +6 -0
  183. package/lib/typescript/components/KeyboardAvoidingView/index.d.ts +50 -0
  184. package/lib/typescript/components/KeyboardAwareScrollView/index.d.ts +25 -0
  185. package/lib/typescript/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.d.ts +6 -0
  186. package/lib/typescript/components/KeyboardAwareScrollView/utils.d.ts +2 -0
  187. package/lib/typescript/components/KeyboardStickyView/index.d.ts +35 -0
  188. package/lib/typescript/components/KeyboardToolbar/Arrow.d.ts +9 -0
  189. package/lib/typescript/components/KeyboardToolbar/Button.d.ts +15 -0
  190. package/lib/typescript/components/KeyboardToolbar/colors.d.ts +2 -0
  191. package/lib/typescript/components/KeyboardToolbar/colors.native.d.ts +2 -0
  192. package/lib/typescript/components/KeyboardToolbar/index.d.ts +50 -0
  193. package/lib/typescript/components/KeyboardToolbar/types.d.ts +18 -0
  194. package/lib/typescript/components/hooks/useColorScheme.d.ts +2 -0
  195. package/lib/typescript/components/index.d.ts +8 -0
  196. package/lib/typescript/constants.d.ts +16 -0
  197. package/lib/typescript/context.d.ts +23 -0
  198. package/lib/typescript/hooks/index.d.ts +17 -0
  199. package/lib/typescript/hooks/useWindowDimensions/index.android.d.ts +2 -0
  200. package/lib/typescript/hooks/useWindowDimensions/index.d.ts +1 -0
  201. package/lib/typescript/index.d.ts +8 -0
  202. package/lib/typescript/internal.d.ts +30 -0
  203. package/lib/typescript/monkey-patch.android.d.ts +2 -0
  204. package/lib/typescript/monkey-patch.d.ts +2 -0
  205. package/lib/typescript/reanimated.d.ts +5 -0
  206. package/lib/typescript/reanimated.native.d.ts +7 -0
  207. package/lib/typescript/specs/KeyboardControllerViewNativeComponent.d.ts +53 -0
  208. package/lib/typescript/specs/KeyboardGestureAreaNativeComponent.d.ts +10 -0
  209. package/lib/typescript/specs/NativeKeyboardController.d.ts +12 -0
  210. package/lib/typescript/specs/NativeStatusBarManagerCompat.d.ts +10 -0
  211. package/lib/typescript/types.d.ts +133 -0
  212. package/lib/typescript/utils.d.ts +1 -0
  213. package/package.json +177 -0
  214. package/react-native-keyboard-controller.podspec +61 -0
  215. package/src/animated.tsx +246 -0
  216. package/src/bindings.native.ts +57 -0
  217. package/src/bindings.ts +38 -0
  218. package/src/components/KeyboardAvoidingView/hooks.ts +58 -0
  219. package/src/components/KeyboardAvoidingView/index.tsx +156 -0
  220. package/src/components/KeyboardAwareScrollView/index.tsx +373 -0
  221. package/src/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts +133 -0
  222. package/src/components/KeyboardAwareScrollView/utils.ts +41 -0
  223. package/src/components/KeyboardStickyView/index.tsx +57 -0
  224. package/src/components/KeyboardToolbar/Arrow.tsx +80 -0
  225. package/src/components/KeyboardToolbar/Button.tsx +98 -0
  226. package/src/components/KeyboardToolbar/colors.native.ts +37 -0
  227. package/src/components/KeyboardToolbar/colors.ts +16 -0
  228. package/src/components/KeyboardToolbar/index.tsx +211 -0
  229. package/src/components/KeyboardToolbar/types.ts +40 -0
  230. package/src/components/hooks/useColorScheme.ts +5 -0
  231. package/src/components/index.ts +11 -0
  232. package/src/constants.ts +19 -0
  233. package/src/context.ts +65 -0
  234. package/src/hooks/index.ts +90 -0
  235. package/src/hooks/useWindowDimensions/index.android.ts +33 -0
  236. package/src/hooks/useWindowDimensions/index.ts +1 -0
  237. package/src/index.ts +21 -0
  238. package/src/internal.ts +84 -0
  239. package/src/monkey-patch.android.ts +44 -0
  240. package/src/monkey-patch.ts +4 -0
  241. package/src/reanimated.native.ts +132 -0
  242. package/src/reanimated.ts +29 -0
  243. package/src/specs/KeyboardControllerViewNativeComponent.ts +70 -0
  244. package/src/specs/KeyboardGestureAreaNativeComponent.ts +15 -0
  245. package/src/specs/NativeKeyboardController.ts +19 -0
  246. package/src/specs/NativeStatusBarManagerCompat.ts +14 -0
  247. package/src/types.ts +211 -0
  248. package/src/utils.ts +1 -0
@@ -0,0 +1,50 @@
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import type { ViewProps } from "react-native";
4
+ export type KeyboardAvoidingViewProps = {
5
+ /**
6
+ * Specify how to react to the presence of the keyboard.
7
+ */
8
+ behavior?: "height" | "position" | "padding";
9
+ /**
10
+ * Style of the content container when `behavior` is 'position'.
11
+ */
12
+ contentContainerStyle?: ViewProps["style"];
13
+ /**
14
+ * Controls whether this `KeyboardAvoidingView` instance should take effect.
15
+ * This is useful when more than one is on the screen. Defaults to true.
16
+ */
17
+ enabled?: boolean;
18
+ /**
19
+ * Distance between the top of the user screen and the React Native view. This
20
+ * may be non-zero in some cases. Defaults to 0.
21
+ */
22
+ keyboardVerticalOffset?: number;
23
+ } & ViewProps;
24
+ /**
25
+ * View that moves out of the way when the keyboard appears by automatically
26
+ * adjusting its height, position, or bottom padding.
27
+ */
28
+ declare const KeyboardAvoidingView: React.ForwardRefExoticComponent<{
29
+ /**
30
+ * Specify how to react to the presence of the keyboard.
31
+ */
32
+ behavior?: "height" | "padding" | "position" | undefined;
33
+ /**
34
+ * Style of the content container when `behavior` is 'position'.
35
+ */
36
+ contentContainerStyle?: ViewProps["style"];
37
+ /**
38
+ * Controls whether this `KeyboardAvoidingView` instance should take effect.
39
+ * This is useful when more than one is on the screen. Defaults to true.
40
+ */
41
+ enabled?: boolean | undefined;
42
+ /**
43
+ * Distance between the top of the user screen and the React Native view. This
44
+ * may be non-zero in some cases. Defaults to 0.
45
+ */
46
+ keyboardVerticalOffset?: number | undefined;
47
+ } & ViewProps & {
48
+ children?: React.ReactNode;
49
+ } & React.RefAttributes<View>>;
50
+ export default KeyboardAvoidingView;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import type { ScrollView, ScrollViewProps } from "react-native";
3
+ export type KeyboardAwareScrollViewProps = {
4
+ /** The distance between keyboard and focused `TextInput` when keyboard is shown. Default is `0`. */
5
+ bottomOffset?: number;
6
+ /** Prevents automatic scrolling of the `ScrollView` when the keyboard gets hidden, maintaining the current screen position. Default is `false`. */
7
+ disableScrollOnKeyboardHide?: boolean;
8
+ /** Controls whether this `KeyboardAwareScrollView` instance should take effect. Default is `true` */
9
+ enabled?: boolean;
10
+ /** Adjusting the bottom spacing of KeyboardAwareScrollView. Default is `0` */
11
+ extraKeyboardSpace?: number;
12
+ } & ScrollViewProps;
13
+ declare const KeyboardAwareScrollView: React.ForwardRefExoticComponent<{
14
+ /** The distance between keyboard and focused `TextInput` when keyboard is shown. Default is `0`. */
15
+ bottomOffset?: number | undefined;
16
+ /** Prevents automatic scrolling of the `ScrollView` when the keyboard gets hidden, maintaining the current screen position. Default is `false`. */
17
+ disableScrollOnKeyboardHide?: boolean | undefined;
18
+ /** Controls whether this `KeyboardAwareScrollView` instance should take effect. Default is `true` */
19
+ enabled?: boolean | undefined;
20
+ /** Adjusting the bottom spacing of KeyboardAwareScrollView. Default is `0` */
21
+ extraKeyboardSpace?: number | undefined;
22
+ } & ScrollViewProps & {
23
+ children?: React.ReactNode;
24
+ } & React.RefAttributes<ScrollView>>;
25
+ export default KeyboardAwareScrollView;
@@ -0,0 +1,6 @@
1
+ import { useKeyboardHandler } from "../../hooks";
2
+ /**
3
+ * Hook that uses default transitions for iOS and Android > 11, and uses
4
+ * custom interpolation on Android < 11 to achieve more smooth animation
5
+ */
6
+ export declare const useSmoothKeyboardHandler: typeof useKeyboardHandler;
@@ -0,0 +1,2 @@
1
+ export declare const debounce: <F extends (...args: Parameters<F>) => ReturnType<F>>(worklet: F, wait?: number) => (...args: Parameters<F>) => void | ReturnType<F>;
2
+ export declare const scrollDistanceWithRespectToSnapPoints: (defaultScrollValue: number, snapPoints?: number[]) => number;
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ import type { View, ViewProps } from "react-native";
3
+ export type KeyboardStickyViewProps = {
4
+ /**
5
+ * Specify additional offset to the view for given keyboard state.
6
+ */
7
+ offset?: {
8
+ /**
9
+ * Adds additional `translateY` when keyboard is close. By default `0`.
10
+ */
11
+ closed?: number;
12
+ /**
13
+ * Adds additional `translateY` when keyboard is open. By default `0`.
14
+ */
15
+ opened?: number;
16
+ };
17
+ } & ViewProps;
18
+ declare const KeyboardStickyView: React.ForwardRefExoticComponent<{
19
+ /**
20
+ * Specify additional offset to the view for given keyboard state.
21
+ */
22
+ offset?: {
23
+ /**
24
+ * Adds additional `translateY` when keyboard is close. By default `0`.
25
+ */
26
+ closed?: number | undefined;
27
+ /**
28
+ * Adds additional `translateY` when keyboard is open. By default `0`.
29
+ */
30
+ opened?: number | undefined;
31
+ } | undefined;
32
+ } & ViewProps & {
33
+ children?: React.ReactNode;
34
+ } & React.RefAttributes<View>>;
35
+ export default KeyboardStickyView;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import type { KeyboardToolbarTheme } from "./types";
3
+ type ArrowProps = {
4
+ type: "prev" | "next";
5
+ disabled?: boolean;
6
+ theme: KeyboardToolbarTheme;
7
+ };
8
+ declare const ArrowComponent: React.FC<ArrowProps>;
9
+ export default ArrowComponent;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import type { KeyboardToolbarTheme } from "./types";
3
+ import type { ViewStyle } from "react-native";
4
+ type ButtonProps = {
5
+ disabled?: boolean;
6
+ onPress: () => void;
7
+ accessibilityLabel: string;
8
+ accessibilityHint: string;
9
+ testID: string;
10
+ rippleRadius?: number;
11
+ style?: ViewStyle;
12
+ theme: KeyboardToolbarTheme;
13
+ };
14
+ declare const _default: ({ children, onPress, disabled, accessibilityLabel, accessibilityHint, testID, style, }: React.PropsWithChildren<ButtonProps>) => React.JSX.Element;
15
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { KeyboardToolbarTheme } from "./types";
2
+ export declare const colors: KeyboardToolbarTheme;
@@ -0,0 +1,2 @@
1
+ import type { KeyboardToolbarTheme } from "./types";
2
+ export declare const colors: KeyboardToolbarTheme;
@@ -0,0 +1,50 @@
1
+ import React from "react";
2
+ import Arrow from "./Arrow";
3
+ import Button from "./Button";
4
+ import { colors } from "./colors";
5
+ import type { HEX, KeyboardToolbarTheme } from "./types";
6
+ import type { ReactNode } from "react";
7
+ export type KeyboardToolbarProps = {
8
+ /** An element that is shown in the middle of the toolbar. */
9
+ content?: JSX.Element | null;
10
+ /** A set of dark/light colors consumed by toolbar component. */
11
+ theme?: KeyboardToolbarTheme;
12
+ /** Custom text for done button. */
13
+ doneText?: ReactNode;
14
+ /** Custom touchable component for toolbar (used for prev/next/done buttons). */
15
+ button?: typeof Button;
16
+ /** Custom icon component used to display next/prev buttons. */
17
+ icon?: typeof Arrow;
18
+ /**
19
+ * Whether to show next and previous buttons. Can be useful to set it to `false` if you have only one input
20
+ * and want to show only `Done` button. Default to `true`.
21
+ */
22
+ showArrows?: boolean;
23
+ /**
24
+ * A callback that is called when the user presses the next button along with the default action.
25
+ */
26
+ onNextCallback?: () => void;
27
+ /**
28
+ * A callback that is called when the user presses the previous button along with the default action.
29
+ */
30
+ onPrevCallback?: () => void;
31
+ /**
32
+ * A callback that is called when the user presses the done button along with the default action.
33
+ */
34
+ onDoneCallback?: () => void;
35
+ /**
36
+ * A component that applies blur effect to the toolbar.
37
+ */
38
+ blur?: JSX.Element | null;
39
+ /**
40
+ * A value for container opacity in hexadecimal format (e.g. `ff`). Default value is `ff`.
41
+ */
42
+ opacity?: HEX;
43
+ };
44
+ /**
45
+ * `KeyboardToolbar` is a component that is shown above the keyboard with `Prev`/`Next` and
46
+ * `Done` buttons.
47
+ */
48
+ declare const KeyboardToolbar: React.FC<KeyboardToolbarProps>;
49
+ export { colors as DefaultKeyboardToolbarTheme };
50
+ export default KeyboardToolbar;
@@ -0,0 +1,18 @@
1
+ import type { ColorValue } from "react-native";
2
+ type Theme = {
3
+ /** Color for arrow when it's enabled */
4
+ primary: ColorValue;
5
+ /** Color for arrow when it's disabled */
6
+ disabled: ColorValue;
7
+ /** Keyboard toolbar background color */
8
+ background: string;
9
+ /** Color for ripple effect (on button touch) on Android */
10
+ ripple: ColorValue;
11
+ };
12
+ export type KeyboardToolbarTheme = {
13
+ light: Theme;
14
+ dark: Theme;
15
+ };
16
+ type HexSymbol = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "A" | "B" | "C" | "D" | "E" | "F" | "a" | "b" | "c" | "d" | "e" | "f";
17
+ export type HEX = `${HexSymbol}${HexSymbol}`;
18
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const useColorScheme: () => "light" | "dark";
2
+ export default useColorScheme;
@@ -0,0 +1,8 @@
1
+ export { default as KeyboardAvoidingView } from "./KeyboardAvoidingView";
2
+ export { default as KeyboardStickyView } from "./KeyboardStickyView";
3
+ export { default as KeyboardAwareScrollView } from "./KeyboardAwareScrollView";
4
+ export { default as KeyboardToolbar, DefaultKeyboardToolbarTheme, } from "./KeyboardToolbar";
5
+ export type { KeyboardAvoidingViewProps } from "./KeyboardAvoidingView";
6
+ export type { KeyboardStickyViewProps } from "./KeyboardStickyView";
7
+ export type { KeyboardAwareScrollViewProps } from "./KeyboardAwareScrollView";
8
+ export type { KeyboardToolbarProps } from "./KeyboardToolbar";
@@ -0,0 +1,16 @@
1
+ export declare enum AndroidSoftInputModes {
2
+ SOFT_INPUT_ADJUST_NOTHING = 48,
3
+ SOFT_INPUT_ADJUST_PAN = 32,
4
+ SOFT_INPUT_ADJUST_RESIZE = 16,
5
+ SOFT_INPUT_ADJUST_UNSPECIFIED = 0,
6
+ SOFT_INPUT_IS_FORWARD_NAVIGATION = 256,
7
+ SOFT_INPUT_MASK_ADJUST = 240,
8
+ SOFT_INPUT_MASK_STATE = 15,
9
+ SOFT_INPUT_MODE_CHANGED = 512,
10
+ SOFT_INPUT_STATE_ALWAYS_HIDDEN = 3,
11
+ SOFT_INPUT_STATE_ALWAYS_VISIBLE = 5,
12
+ SOFT_INPUT_STATE_HIDDEN = 2,
13
+ SOFT_INPUT_STATE_UNCHANGED = 1,
14
+ SOFT_INPUT_STATE_UNSPECIFIED = 0,
15
+ SOFT_INPUT_STATE_VISIBLE = 4
16
+ }
@@ -0,0 +1,23 @@
1
+ import { Animated } from "react-native";
2
+ import type { FocusedInputHandlers, FocusedInputLayoutChangedEvent, KeyboardHandlers } from "./types";
3
+ import type React from "react";
4
+ import type { SharedValue } from "react-native-reanimated";
5
+ export type AnimatedContext = {
6
+ progress: Animated.Value;
7
+ height: Animated.AnimatedMultiplication<number>;
8
+ };
9
+ export type ReanimatedContext = {
10
+ progress: SharedValue<number>;
11
+ height: SharedValue<number>;
12
+ };
13
+ export type KeyboardAnimationContext = {
14
+ enabled: boolean;
15
+ animated: AnimatedContext;
16
+ reanimated: ReanimatedContext;
17
+ layout: SharedValue<FocusedInputLayoutChangedEvent | null>;
18
+ setKeyboardHandlers: (handlers: KeyboardHandlers) => void;
19
+ setInputHandlers: (handlers: FocusedInputHandlers) => void;
20
+ setEnabled: React.Dispatch<React.SetStateAction<boolean>>;
21
+ };
22
+ export declare const KeyboardContext: React.Context<KeyboardAnimationContext>;
23
+ export declare const useKeyboardContext: () => KeyboardAnimationContext;
@@ -0,0 +1,17 @@
1
+ import type { AnimatedContext, ReanimatedContext } from "../context";
2
+ import type { FocusedInputHandler, KeyboardHandler } from "../types";
3
+ import type { DependencyList } from "react";
4
+ export declare const useResizeMode: () => void;
5
+ export declare const useKeyboardAnimation: () => AnimatedContext;
6
+ export declare const useReanimatedKeyboardAnimation: () => ReanimatedContext;
7
+ export declare function useGenericKeyboardHandler(handler: KeyboardHandler, deps?: DependencyList): void;
8
+ export declare function useKeyboardHandler(handler: KeyboardHandler, deps?: DependencyList): void;
9
+ export declare function useKeyboardController(): {
10
+ setEnabled: import("react").Dispatch<import("react").SetStateAction<boolean>>;
11
+ enabled: boolean;
12
+ };
13
+ export declare function useReanimatedFocusedInput(): {
14
+ input: import("react-native-reanimated").SharedValue<import("../types").FocusedInputLayoutChangedEvent | null>;
15
+ };
16
+ export declare function useFocusedInputHandler(handler?: FocusedInputHandler, deps?: DependencyList): void;
17
+ export * from "./useWindowDimensions";
@@ -0,0 +1,2 @@
1
+ import type { WindowDimensionsEventData } from "../../types";
2
+ export declare const useWindowDimensions: () => WindowDimensionsEventData;
@@ -0,0 +1 @@
1
+ export { useWindowDimensions } from "react-native";
@@ -0,0 +1,8 @@
1
+ export * from "./bindings";
2
+ export * from "./animated";
3
+ export * from "./context";
4
+ export * from "./hooks";
5
+ export * from "./constants";
6
+ export * from "./types";
7
+ export { KeyboardAvoidingView, KeyboardStickyView, KeyboardAwareScrollView, KeyboardToolbar, DefaultKeyboardToolbarTheme, } from "./components";
8
+ export type { KeyboardAvoidingViewProps, KeyboardStickyViewProps, KeyboardAwareScrollViewProps, KeyboardToolbarProps, } from "./components";
@@ -0,0 +1,30 @@
1
+ import { Animated } from "react-native";
2
+ import type { Handlers } from "./types";
3
+ type UntypedHandler = Record<string, (event: never) => void>;
4
+ type SharedHandlersReturnType<T extends UntypedHandler> = [
5
+ (handler: Handlers<T>) => void,
6
+ <K extends keyof T>(type: K, event: Parameters<T[K]>[0]) => void
7
+ ];
8
+ /**
9
+ * Hook for storing worklet handlers (objects with keys, where values are worklets).
10
+ * Returns methods for setting handlers and broadcasting events in them.
11
+ *
12
+ * T is a generic that looks like:
13
+ * @example
14
+ * {
15
+ * onEvent: () => {},
16
+ * onEvent2: () => {},
17
+ * }
18
+ */
19
+ export declare function useSharedHandlers<T extends UntypedHandler>(): SharedHandlersReturnType<T>;
20
+ /**
21
+ * TS variant of `useAnimatedValue` hook which is added in RN 0.71
22
+ * A better alternative of storing animated values in refs, since
23
+ * it doesn't recreate a new `Animated.Value` object on every re-render
24
+ * and therefore consumes less memory. We can not use a variant from
25
+ * RN, since this library supports earlier versions of RN.
26
+ *
27
+ * @see https://github.com/facebook/react-native/commit/e22217fe8b9455e32695f88ca835e11442b0a937
28
+ */
29
+ export declare function useAnimatedValue(initialValue: number, config?: Animated.AnimatedConfig): Animated.Value;
30
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const applyMonkeyPatch: () => void;
2
+ export declare const revertMonkeyPatch: () => void;
@@ -0,0 +1,2 @@
1
+ export declare const applyMonkeyPatch: () => void;
2
+ export declare const revertMonkeyPatch: () => void;
@@ -0,0 +1,5 @@
1
+ import type { EventWithName, FocusedInputLayoutChangedEvent, FocusedInputLayoutHandlerHook, FocusedInputSelectionChangedEvent, FocusedInputSelectionHandlerHook, FocusedInputTextChangedEvent, FocusedInputTextHandlerHook, KeyboardHandlerHook, NativeEvent } from "./types";
2
+ export declare const useAnimatedKeyboardHandler: KeyboardHandlerHook<Record<string, unknown>, EventWithName<NativeEvent>>;
3
+ export declare const useFocusedInputLayoutHandler: FocusedInputLayoutHandlerHook<Record<string, unknown>, EventWithName<FocusedInputLayoutChangedEvent>>;
4
+ export declare const useFocusedInputTextHandler: FocusedInputTextHandlerHook<Record<string, unknown>, EventWithName<FocusedInputTextChangedEvent>>;
5
+ export declare const useFocusedInputSelectionHandler: FocusedInputSelectionHandlerHook<Record<string, unknown>, EventWithName<FocusedInputSelectionChangedEvent>>;
@@ -0,0 +1,7 @@
1
+ import type { EventWithName, FocusedInputLayoutChangedEvent, FocusedInputLayoutHandlerHook, FocusedInputSelectionChangedEvent, FocusedInputSelectionHandlerHook, FocusedInputTextChangedEvent, FocusedInputTextHandlerHook, KeyboardHandlerHook, NativeEvent } from "./types";
2
+ type EventContext = Record<string, unknown>;
3
+ export declare const useAnimatedKeyboardHandler: KeyboardHandlerHook<EventContext, EventWithName<NativeEvent>>;
4
+ export declare const useFocusedInputLayoutHandler: FocusedInputLayoutHandlerHook<EventContext, EventWithName<FocusedInputLayoutChangedEvent>>;
5
+ export declare const useFocusedInputTextHandler: FocusedInputTextHandlerHook<EventContext, EventWithName<FocusedInputTextChangedEvent>>;
6
+ export declare const useFocusedInputSelectionHandler: FocusedInputSelectionHandlerHook<EventContext, EventWithName<FocusedInputSelectionChangedEvent>>;
7
+ export {};
@@ -0,0 +1,53 @@
1
+ import type { HostComponent } from "react-native";
2
+ import type { ViewProps } from "react-native/Libraries/Components/View/ViewPropTypes";
3
+ import type { DirectEventHandler, Double, Int32 } from "react-native/Libraries/Types/CodegenTypes";
4
+ type KeyboardMoveEvent = Readonly<{
5
+ height: Double;
6
+ progress: Double;
7
+ duration: Int32;
8
+ target: Int32;
9
+ }>;
10
+ type FocusedInputLayoutChangedEvent = Readonly<{
11
+ target: Int32;
12
+ parentScrollViewTarget: Int32;
13
+ layout: {
14
+ x: Double;
15
+ y: Double;
16
+ width: Double;
17
+ height: Double;
18
+ absoluteX: Double;
19
+ absoluteY: Double;
20
+ };
21
+ }>;
22
+ type FocusedInputTextChangedEvent = Readonly<{
23
+ text: string;
24
+ }>;
25
+ type FocusedInputSelectionChangedEvent = Readonly<{
26
+ target: Int32;
27
+ selection: {
28
+ start: {
29
+ x: Double;
30
+ y: Double;
31
+ position: Int32;
32
+ };
33
+ end: {
34
+ x: Double;
35
+ y: Double;
36
+ position: Int32;
37
+ };
38
+ };
39
+ }>;
40
+ export interface NativeProps extends ViewProps {
41
+ enabled?: boolean;
42
+ statusBarTranslucent?: boolean;
43
+ navigationBarTranslucent?: boolean;
44
+ onKeyboardMoveStart?: DirectEventHandler<KeyboardMoveEvent>;
45
+ onKeyboardMove?: DirectEventHandler<KeyboardMoveEvent>;
46
+ onKeyboardMoveEnd?: DirectEventHandler<KeyboardMoveEvent>;
47
+ onKeyboardMoveInteractive?: DirectEventHandler<KeyboardMoveEvent>;
48
+ onFocusedInputLayoutChanged?: DirectEventHandler<FocusedInputLayoutChangedEvent>;
49
+ onFocusedInputTextChanged?: DirectEventHandler<FocusedInputTextChangedEvent>;
50
+ onFocusedInputSelectionChanged?: DirectEventHandler<FocusedInputSelectionChangedEvent>;
51
+ }
52
+ declare const _default: HostComponent<NativeProps>;
53
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import type { HostComponent } from "react-native";
2
+ import type { ViewProps } from "react-native/Libraries/Components/View/ViewPropTypes";
3
+ import type { WithDefault } from "react-native/Libraries/Types/CodegenTypes";
4
+ export interface NativeProps extends ViewProps {
5
+ interpolator?: WithDefault<"linear" | "ios", "linear">;
6
+ showOnSwipeUp?: boolean;
7
+ enableSwipeToDismiss?: boolean;
8
+ }
9
+ declare const _default: HostComponent<NativeProps>;
10
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type { TurboModule } from "react-native";
2
+ export interface Spec extends TurboModule {
3
+ readonly getConstants: () => {};
4
+ setInputMode(mode: number): void;
5
+ setDefaultMode(): void;
6
+ dismiss(): void;
7
+ setFocusTo(direction: string): void;
8
+ addListener: (eventName: string) => void;
9
+ removeListeners: (count: number) => void;
10
+ }
11
+ declare const _default: Spec | null;
12
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import type { TurboModule } from "react-native";
2
+ export interface Spec extends TurboModule {
3
+ readonly getConstants: () => {};
4
+ setHidden(hidden: boolean): void;
5
+ setColor(color: number, animated: boolean): void;
6
+ setTranslucent(translucent: boolean): void;
7
+ setStyle(style: string): void;
8
+ }
9
+ declare const _default: Spec | null;
10
+ export default _default;
@@ -0,0 +1,133 @@
1
+ import type { EmitterSubscription, NativeSyntheticEvent, ViewProps } from "react-native";
2
+ export type NativeEvent = {
3
+ progress: number;
4
+ height: number;
5
+ duration: number;
6
+ target: number;
7
+ };
8
+ export type FocusedInputLayoutChangedEvent = {
9
+ target: number;
10
+ parentScrollViewTarget: number;
11
+ layout: {
12
+ x: number;
13
+ y: number;
14
+ width: number;
15
+ height: number;
16
+ absoluteX: number;
17
+ absoluteY: number;
18
+ };
19
+ };
20
+ export type FocusedInputTextChangedEvent = {
21
+ text: string;
22
+ };
23
+ export type FocusedInputSelectionChangedEvent = {
24
+ target: number;
25
+ selection: {
26
+ start: {
27
+ x: number;
28
+ y: number;
29
+ position: number;
30
+ };
31
+ end: {
32
+ x: number;
33
+ y: number;
34
+ position: number;
35
+ };
36
+ };
37
+ };
38
+ export type EventWithName<T> = {
39
+ eventName: string;
40
+ } & T;
41
+ export type KeyboardControllerProps = {
42
+ onKeyboardMoveStart?: (e: NativeSyntheticEvent<EventWithName<NativeEvent>>) => void;
43
+ onKeyboardMove?: (e: NativeSyntheticEvent<EventWithName<NativeEvent>>) => void;
44
+ onKeyboardMoveEnd?: (e: NativeSyntheticEvent<EventWithName<NativeEvent>>) => void;
45
+ onKeyboardMoveInteractive?: (e: NativeSyntheticEvent<EventWithName<NativeEvent>>) => void;
46
+ onFocusedInputLayoutChanged?: (e: NativeSyntheticEvent<EventWithName<FocusedInputLayoutChangedEvent>>) => void;
47
+ onFocusedInputTextChanged?: (e: NativeSyntheticEvent<EventWithName<FocusedInputTextChangedEvent>>) => void;
48
+ onFocusedInputSelectionChanged?: (e: NativeSyntheticEvent<EventWithName<FocusedInputSelectionChangedEvent>>) => void;
49
+ onKeyboardMoveReanimated?: (e: NativeSyntheticEvent<EventWithName<NativeEvent>>) => void;
50
+ onFocusedInputLayoutChangedReanimated?: (e: NativeSyntheticEvent<EventWithName<FocusedInputLayoutChangedEvent>>) => void;
51
+ onFocusedInputTextChangedReanimated?: (e: NativeSyntheticEvent<EventWithName<FocusedInputTextChangedEvent>>) => void;
52
+ onFocusedInputSelectionChangedReanimated?: (e: NativeSyntheticEvent<EventWithName<FocusedInputSelectionChangedEvent>>) => void;
53
+ statusBarTranslucent?: boolean;
54
+ navigationBarTranslucent?: boolean;
55
+ enabled?: boolean;
56
+ } & ViewProps;
57
+ export type KeyboardGestureAreaProps = {
58
+ interpolator: "ios" | "linear";
59
+ /**
60
+ * Whether to allow to show a keyboard from dismissed state by swipe up.
61
+ * Default to `false`.
62
+ */
63
+ showOnSwipeUp?: boolean;
64
+ /**
65
+ * Whether to allow to control a keyboard by gestures. The strategy how
66
+ * it should be controlled is determined by `interpolator` property.
67
+ * Defaults to `true`.
68
+ */
69
+ enableSwipeToDismiss?: boolean;
70
+ } & ViewProps;
71
+ export type Direction = "next" | "prev" | "current";
72
+ export type KeyboardControllerModule = {
73
+ setDefaultMode: () => void;
74
+ setInputMode: (mode: number) => void;
75
+ dismiss: () => void;
76
+ setFocusTo: (direction: Direction) => void;
77
+ addListener: (eventName: string) => void;
78
+ removeListeners: (count: number) => void;
79
+ };
80
+ export type KeyboardControllerEvents = "keyboardWillShow" | "keyboardDidShow" | "keyboardWillHide" | "keyboardDidHide";
81
+ export type KeyboardEventData = {
82
+ height: number;
83
+ duration: number;
84
+ timestamp: number;
85
+ target: number;
86
+ };
87
+ export type KeyboardEventsModule = {
88
+ addListener: (name: KeyboardControllerEvents, cb: (e: KeyboardEventData) => void) => EmitterSubscription;
89
+ };
90
+ export type FocusedInputAvailableEvents = "focusDidSet";
91
+ export type FocusedInputEventData = {
92
+ current: number;
93
+ count: number;
94
+ };
95
+ export type FocusedInputEventsModule = {
96
+ addListener: (name: FocusedInputAvailableEvents, cb: (e: FocusedInputEventData) => void) => EmitterSubscription;
97
+ };
98
+ export type WindowDimensionsAvailableEvents = "windowDidResize";
99
+ export type WindowDimensionsEventData = {
100
+ width: number;
101
+ height: number;
102
+ };
103
+ export type WindowDimensionsEventsModule = {
104
+ addListener: (name: WindowDimensionsAvailableEvents, cb: (e: WindowDimensionsEventData) => void) => EmitterSubscription;
105
+ };
106
+ export type KeyboardHandlerHook<TContext, Event> = (handlers: {
107
+ onKeyboardMoveStart?: (e: NativeEvent, context: TContext) => void;
108
+ onKeyboardMove?: (e: NativeEvent, context: TContext) => void;
109
+ onKeyboardMoveEnd?: (e: NativeEvent, context: TContext) => void;
110
+ onKeyboardMoveInteractive?: (e: NativeEvent, context: TContext) => void;
111
+ }, dependencies?: unknown[]) => (e: NativeSyntheticEvent<Event>) => void;
112
+ export type FocusedInputLayoutHandlerHook<TContext, Event> = (handlers: {
113
+ onFocusedInputLayoutChanged?: (e: FocusedInputLayoutChangedEvent, context: TContext) => void;
114
+ }, dependencies?: unknown[]) => (e: NativeSyntheticEvent<Event>) => void;
115
+ export type FocusedInputTextHandlerHook<TContext, Event> = (handlers: {
116
+ onFocusedInputTextChanged?: (e: FocusedInputTextChangedEvent, context: TContext) => void;
117
+ }, dependencies?: unknown[]) => (e: NativeSyntheticEvent<Event>) => void;
118
+ export type FocusedInputSelectionHandlerHook<TContext, Event> = (handlers: {
119
+ onFocusedInputSelectionChanged?: (e: FocusedInputSelectionChangedEvent, context: TContext) => void;
120
+ }, dependencies?: unknown[]) => (e: NativeSyntheticEvent<Event>) => void;
121
+ export type Handlers<T> = Record<string, T | undefined>;
122
+ export type KeyboardHandler = Partial<{
123
+ onStart: (e: NativeEvent) => void;
124
+ onMove: (e: NativeEvent) => void;
125
+ onEnd: (e: NativeEvent) => void;
126
+ onInteractive: (e: NativeEvent) => void;
127
+ }>;
128
+ export type KeyboardHandlers = Handlers<KeyboardHandler>;
129
+ export type FocusedInputHandler = Partial<{
130
+ onChangeText: (e: FocusedInputTextChangedEvent) => void;
131
+ onSelectionChange: (e: FocusedInputSelectionChangedEvent) => void;
132
+ }>;
133
+ export type FocusedInputHandlers = Handlers<FocusedInputHandler>;
@@ -0,0 +1 @@
1
+ export declare const uuid: () => string;