@react-native-ohos/react-native-keyboard-controller 1.17.0-beta.2 → 1.17.0
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.
- package/LICENSE +21 -21
- package/README.OpenSource +11 -11
- package/README.md +686 -19
- package/harmony/keyboard_controller/BuildProfile.ets +16 -16
- package/harmony/keyboard_controller/Index.ets +29 -28
- package/harmony/keyboard_controller/build-profile.json5 +31 -31
- package/harmony/keyboard_controller/hvigorfile.ts +6 -6
- package/harmony/keyboard_controller/obfuscation-rules.txt +17 -17
- package/harmony/keyboard_controller/oh-package-lock.json5 +28 -18
- package/harmony/keyboard_controller/oh-package.json5 +10 -10
- package/harmony/keyboard_controller/src/main/cpp/CMakeLists.txt +7 -7
- package/harmony/keyboard_controller/src/main/cpp/ClippingScrollViewComponentDescriptor.h +86 -0
- package/harmony/keyboard_controller/src/main/cpp/ClippingScrollViewComponentInstance.cpp +104 -0
- package/harmony/keyboard_controller/src/main/cpp/ClippingScrollViewComponentInstance.h +64 -0
- package/harmony/keyboard_controller/src/main/cpp/ClippingScrollViewJSIBinder.h +60 -0
- package/harmony/keyboard_controller/src/main/cpp/EventEmitters.cpp +119 -96
- package/harmony/keyboard_controller/src/main/cpp/EventEmitters.h +111 -111
- package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentDescriptor.h +94 -94
- package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.cpp +840 -288
- package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewComponentInstance.h +169 -103
- package/harmony/keyboard_controller/src/main/cpp/KeyboardControllerViewJSIBinder.h +65 -65
- package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentDescriptor.h +79 -79
- package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentInstance.cpp +108 -108
- package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaComponentInstance.h +83 -83
- package/harmony/keyboard_controller/src/main/cpp/KeyboardGestureAreaJSIBinder.h +60 -60
- package/harmony/keyboard_controller/src/main/cpp/KeyboardToolbarGroupViewComponentDescriptor.h +46 -0
- package/harmony/keyboard_controller/src/main/cpp/KeyboardToolbarGroupViewComponentInstance.cpp +37 -0
- package/harmony/keyboard_controller/src/main/cpp/KeyboardToolbarGroupViewComponentInstance.h +32 -0
- package/harmony/keyboard_controller/src/main/cpp/KeyboardToolbarGroupViewJSIBinder.h +23 -0
- package/harmony/keyboard_controller/src/main/cpp/RNKeyboardController.cpp +103 -46
- package/harmony/keyboard_controller/src/main/cpp/RNKeyboardController.h +48 -48
- package/harmony/keyboard_controller/src/main/cpp/RNKeyboardControllerPackage.h +20 -0
- package/harmony/keyboard_controller/src/main/cpp/RNStatusBarManagerCompat.cpp +45 -45
- package/harmony/keyboard_controller/src/main/cpp/RNStatusBarManagerCompat.h +49 -49
- package/harmony/keyboard_controller/src/main/cpp/ViewHierarchyNavigator.cpp +207 -186
- package/harmony/keyboard_controller/src/main/cpp/ViewHierarchyNavigator.h +131 -112
- package/harmony/keyboard_controller/src/main/cpp/keyboardControllerPackage.cpp +77 -64
- package/harmony/keyboard_controller/src/main/cpp/keyboardControllerPackage.h +85 -77
- package/harmony/keyboard_controller/src/main/ets/Logger.ts +66 -66
- package/harmony/keyboard_controller/src/main/ets/{RNKeyboardControllerPackage.ts → RNKeyboardControllerPackage.ets} +70 -66
- package/harmony/keyboard_controller/src/main/ets/RNKeyboardControllerTurboModule.ts +465 -273
- package/harmony/keyboard_controller/src/main/ets/RNStatusBarManagerCompatTurboModule.ts +128 -119
- package/harmony/keyboard_controller/src/main/ets/Type.ts +63 -62
- package/harmony/keyboard_controller/src/main/module.json5 +11 -11
- package/harmony/keyboard_controller/src/main/resources/base/element/string.json +8 -8
- package/harmony/keyboard_controller/src/main/resources/en_US/element/string.json +8 -8
- package/harmony/keyboard_controller/src/main/resources/zh_CN/element/string.json +8 -8
- package/harmony/keyboard_controller/{ts.ts → ts.ets} +29 -29
- package/harmony/keyboard_controller.har +0 -0
- package/lib/commonjs/animated.js +22 -11
- package/lib/commonjs/animated.js.map +1 -1
- package/lib/commonjs/architecture.js +8 -0
- package/lib/commonjs/architecture.js.map +1 -0
- package/lib/commonjs/bindings.js +40 -5
- package/lib/commonjs/bindings.js.map +1 -1
- package/lib/commonjs/bindings.native.js +28 -5
- package/lib/commonjs/bindings.native.js.map +1 -1
- package/lib/commonjs/compat.js +50 -0
- package/lib/commonjs/compat.js.map +1 -0
- package/lib/commonjs/components/KeyboardAvoidingView/hooks.js +21 -15
- package/lib/commonjs/components/KeyboardAvoidingView/hooks.js.map +1 -1
- package/lib/commonjs/components/KeyboardAvoidingView/index.js +39 -14
- package/lib/commonjs/components/KeyboardAvoidingView/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/index.js +94 -57
- package/lib/commonjs/components/KeyboardAwareScrollView/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js +5 -5
- package/lib/commonjs/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js.map +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/utils.js.map +1 -1
- package/lib/commonjs/components/KeyboardChatScrollView/hooks.js +13 -0
- package/lib/commonjs/components/KeyboardChatScrollView/hooks.js.map +1 -0
- package/lib/commonjs/components/KeyboardChatScrollView/index.js +122 -0
- package/lib/commonjs/components/KeyboardChatScrollView/index.js.map +1 -0
- package/lib/commonjs/components/KeyboardChatScrollView/types.js +6 -0
- package/lib/commonjs/components/KeyboardChatScrollView/types.js.map +1 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useChatKeyboard/helpers.js +221 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useChatKeyboard/helpers.js.map +1 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js +149 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js.map +1 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useChatKeyboard/index.js +240 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useChatKeyboard/index.js.map +1 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useChatKeyboard/types.js +6 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useChatKeyboard/types.js.map +1 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useEndVisible.js +40 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useEndVisible.js.map +1 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useExtraContentPadding/index.js +92 -0
- package/lib/commonjs/components/KeyboardChatScrollView/useExtraContentPadding/index.js.map +1 -0
- package/lib/commonjs/components/KeyboardStickyView/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardToolbar/Arrow.js +2 -3
- package/lib/commonjs/components/KeyboardToolbar/Arrow.js.map +1 -1
- package/lib/commonjs/components/KeyboardToolbar/Button.js +2 -3
- package/lib/commonjs/components/KeyboardToolbar/Button.js.map +1 -1
- package/lib/commonjs/components/KeyboardToolbar/colors.js.map +1 -1
- package/lib/commonjs/components/KeyboardToolbar/colors.native.js.map +1 -1
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Background.js +13 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Background.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Content.js +25 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Content.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Done.js +58 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Done.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Next.js +49 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Next.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Prev.js +49 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/Prev.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/index.js +42 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/index.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/types.js +6 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/components/types.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/context.js +17 -0
- package/lib/commonjs/components/KeyboardToolbar/compound/context.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/constants.js +17 -0
- package/lib/commonjs/components/KeyboardToolbar/constants.js.map +1 -0
- package/lib/commonjs/components/KeyboardToolbar/index.js +98 -87
- package/lib/commonjs/components/KeyboardToolbar/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardToolbar/types.js.map +1 -1
- package/lib/commonjs/components/ScrollViewWithBottomPadding/index.js +120 -0
- package/lib/commonjs/components/ScrollViewWithBottomPadding/index.js.map +1 -0
- package/lib/commonjs/components/ScrollViewWithBottomPadding/styles.js +15 -0
- package/lib/commonjs/components/ScrollViewWithBottomPadding/styles.js.map +1 -0
- package/lib/commonjs/components/hooks/useColorScheme.js.map +1 -1
- package/lib/commonjs/components/hooks/useCombinedRef.js +24 -0
- package/lib/commonjs/components/hooks/useCombinedRef.js.map +1 -0
- package/lib/commonjs/components/hooks/useScrollState.js +62 -0
- package/lib/commonjs/components/hooks/useScrollState.js.map +1 -0
- package/lib/commonjs/components/index.js +7 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/constants.js +3 -1
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/context.js +1 -0
- package/lib/commonjs/context.js.map +1 -1
- package/lib/commonjs/hooks/index.js +14 -1
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useKeyboardState/index.js +39 -0
- package/lib/commonjs/hooks/useKeyboardState/index.js.map +1 -0
- package/lib/commonjs/hooks/useWindowDimensions/index.android.js.map +1 -1
- package/lib/commonjs/hooks/useWindowDimensions/index.js.map +1 -1
- package/lib/commonjs/index.js +27 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal.js +54 -18
- package/lib/commonjs/internal.js.map +1 -1
- package/lib/commonjs/module.js +21 -12
- package/lib/commonjs/module.js.map +1 -1
- package/lib/commonjs/reanimated.js.map +1 -1
- package/lib/commonjs/reanimated.native.js.map +1 -1
- package/lib/commonjs/specs/ClippingScrollViewDecoratorViewNativeComponent.js +12 -0
- package/lib/commonjs/specs/ClippingScrollViewDecoratorViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/KeyboardControllerViewNativeComponent.js +8 -2
- package/lib/commonjs/specs/KeyboardControllerViewNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/KeyboardGestureAreaNativeComponent.js +2 -1
- package/lib/commonjs/specs/KeyboardGestureAreaNativeComponent.js.map +1 -1
- package/lib/commonjs/specs/KeyboardToolbarGroupViewNativeComponent.js +12 -0
- package/lib/commonjs/specs/KeyboardToolbarGroupViewNativeComponent.js.map +1 -0
- package/lib/commonjs/specs/NativeKeyboardController.js.map +1 -1
- package/lib/commonjs/specs/NativeStatusBarManagerCompat.js.map +1 -1
- package/lib/commonjs/specs/OverKeyboardViewNativeComponent.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/findNodeHandle/index.js +9 -0
- package/lib/commonjs/utils/findNodeHandle/index.js.map +1 -0
- package/lib/commonjs/utils/findNodeHandle/index.native.js +13 -0
- package/lib/commonjs/utils/findNodeHandle/index.native.js.map +1 -0
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/commonjs/views/KeyboardExtender/index.js +30 -0
- package/lib/commonjs/views/KeyboardExtender/index.js.map +1 -0
- package/lib/commonjs/views/OverKeyboardView/index.js.map +1 -1
- package/lib/commonjs/views/index.js +7 -0
- package/lib/commonjs/views/index.js.map +1 -1
- package/lib/module/animated.js +24 -13
- package/lib/module/animated.js.map +1 -1
- package/lib/module/architecture.js +2 -0
- package/lib/module/architecture.js.map +1 -0
- package/lib/module/bindings.js +39 -5
- package/lib/module/bindings.js.map +1 -1
- package/lib/module/bindings.native.js +27 -5
- package/lib/module/bindings.native.js.map +1 -1
- package/lib/module/compat.js +43 -0
- package/lib/module/compat.js.map +1 -0
- package/lib/module/components/KeyboardAvoidingView/hooks.js +22 -16
- package/lib/module/components/KeyboardAvoidingView/hooks.js.map +1 -1
- package/lib/module/components/KeyboardAvoidingView/index.js +38 -14
- package/lib/module/components/KeyboardAvoidingView/index.js.map +1 -1
- package/lib/module/components/KeyboardAwareScrollView/index.js +97 -60
- package/lib/module/components/KeyboardAwareScrollView/index.js.map +1 -1
- package/lib/module/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js +5 -5
- package/lib/module/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.js.map +1 -1
- package/lib/module/components/KeyboardAwareScrollView/utils.js.map +1 -1
- package/lib/module/components/KeyboardChatScrollView/hooks.js +2 -0
- package/lib/module/components/KeyboardChatScrollView/hooks.js.map +1 -0
- package/lib/module/components/KeyboardChatScrollView/index.js +115 -0
- package/lib/module/components/KeyboardChatScrollView/index.js.map +1 -0
- package/lib/module/components/KeyboardChatScrollView/types.js +2 -0
- package/lib/module/components/KeyboardChatScrollView/types.js.map +1 -0
- package/lib/module/components/KeyboardChatScrollView/useChatKeyboard/helpers.js +207 -0
- package/lib/module/components/KeyboardChatScrollView/useChatKeyboard/helpers.js.map +1 -0
- package/lib/module/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js +143 -0
- package/lib/module/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js.map +1 -0
- package/lib/module/components/KeyboardChatScrollView/useChatKeyboard/index.js +234 -0
- package/lib/module/components/KeyboardChatScrollView/useChatKeyboard/index.js.map +1 -0
- package/lib/module/components/KeyboardChatScrollView/useChatKeyboard/types.js +2 -0
- package/lib/module/components/KeyboardChatScrollView/useChatKeyboard/types.js.map +1 -0
- package/lib/module/components/KeyboardChatScrollView/useEndVisible.js +33 -0
- package/lib/module/components/KeyboardChatScrollView/useEndVisible.js.map +1 -0
- package/lib/module/components/KeyboardChatScrollView/useExtraContentPadding/index.js +87 -0
- package/lib/module/components/KeyboardChatScrollView/useExtraContentPadding/index.js.map +1 -0
- package/lib/module/components/KeyboardStickyView/index.js.map +1 -1
- package/lib/module/components/KeyboardToolbar/Arrow.js +2 -2
- package/lib/module/components/KeyboardToolbar/Arrow.js.map +1 -1
- package/lib/module/components/KeyboardToolbar/Button.js +2 -2
- package/lib/module/components/KeyboardToolbar/Button.js.map +1 -1
- package/lib/module/components/KeyboardToolbar/colors.js.map +1 -1
- package/lib/module/components/KeyboardToolbar/colors.native.js.map +1 -1
- package/lib/module/components/KeyboardToolbar/compound/components/Background.js +6 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Background.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Content.js +18 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Content.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Done.js +50 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Done.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Next.js +41 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Next.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Prev.js +41 -0
- package/lib/module/components/KeyboardToolbar/compound/components/Prev.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/compound/components/index.js +6 -0
- package/lib/module/components/KeyboardToolbar/compound/components/index.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/compound/components/types.js +2 -0
- package/lib/module/components/KeyboardToolbar/compound/components/types.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/compound/context.js +10 -0
- package/lib/module/components/KeyboardToolbar/compound/context.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/constants.js +11 -0
- package/lib/module/components/KeyboardToolbar/constants.js.map +1 -0
- package/lib/module/components/KeyboardToolbar/index.js +98 -88
- package/lib/module/components/KeyboardToolbar/index.js.map +1 -1
- package/lib/module/components/KeyboardToolbar/types.js.map +1 -1
- package/lib/module/components/ScrollViewWithBottomPadding/index.js +112 -0
- package/lib/module/components/ScrollViewWithBottomPadding/index.js.map +1 -0
- package/lib/module/components/ScrollViewWithBottomPadding/styles.js +9 -0
- package/lib/module/components/ScrollViewWithBottomPadding/styles.js.map +1 -0
- package/lib/module/components/hooks/useColorScheme.js.map +1 -1
- package/lib/module/components/hooks/useCombinedRef.js +18 -0
- package/lib/module/components/hooks/useCombinedRef.js.map +1 -0
- package/lib/module/components/hooks/useScrollState.js +56 -0
- package/lib/module/components/hooks/useScrollState.js.map +1 -0
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/constants.js +3 -0
- package/lib/module/constants.js.map +1 -1
- package/lib/module/context.js +1 -0
- package/lib/module/context.js.map +1 -1
- package/lib/module/hooks/index.js +3 -1
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useKeyboardState/index.js +33 -0
- package/lib/module/hooks/useKeyboardState/index.js.map +1 -0
- package/lib/module/hooks/useWindowDimensions/index.android.js.map +1 -1
- package/lib/module/hooks/useWindowDimensions/index.js.map +1 -1
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal.js +53 -18
- package/lib/module/internal.js.map +1 -1
- package/lib/module/module.js +21 -12
- package/lib/module/module.js.map +1 -1
- package/lib/module/reanimated.js.map +1 -1
- package/lib/module/reanimated.native.js.map +1 -1
- package/lib/module/specs/ClippingScrollViewDecoratorViewNativeComponent.js +6 -0
- package/lib/module/specs/ClippingScrollViewDecoratorViewNativeComponent.js.map +1 -0
- package/lib/module/specs/KeyboardControllerViewNativeComponent.js +7 -1
- package/lib/module/specs/KeyboardControllerViewNativeComponent.js.map +1 -1
- package/lib/module/specs/KeyboardGestureAreaNativeComponent.js +2 -1
- package/lib/module/specs/KeyboardGestureAreaNativeComponent.js.map +1 -1
- package/lib/module/specs/KeyboardToolbarGroupViewNativeComponent.js +5 -0
- package/lib/module/specs/KeyboardToolbarGroupViewNativeComponent.js.map +1 -0
- package/lib/module/specs/NativeKeyboardController.js.map +1 -1
- package/lib/module/specs/NativeStatusBarManagerCompat.js.map +1 -1
- package/lib/module/specs/OverKeyboardViewNativeComponent.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/findNodeHandle/index.js +2 -0
- package/lib/module/utils/findNodeHandle/index.js.map +1 -0
- package/lib/module/utils/findNodeHandle/index.native.js +3 -0
- package/lib/module/utils/findNodeHandle/index.native.js.map +1 -0
- package/lib/module/utils.js.map +1 -1
- package/lib/module/views/KeyboardExtender/index.js +23 -0
- package/lib/module/views/KeyboardExtender/index.js.map +1 -0
- package/lib/module/views/OverKeyboardView/index.js.map +1 -1
- package/lib/module/views/index.js +1 -0
- package/lib/module/views/index.js.map +1 -1
- package/lib/typescript/animated.d.ts +2 -38
- package/lib/typescript/architecture.d.ts +1 -0
- package/lib/typescript/bindings.d.ts +15 -1
- package/lib/typescript/bindings.native.d.ts +10 -1
- package/lib/typescript/compat.d.ts +12 -0
- package/lib/typescript/components/KeyboardAvoidingView/index.d.ts +5 -0
- package/lib/typescript/components/KeyboardAwareScrollView/index.d.ts +4 -1
- package/lib/typescript/components/KeyboardChatScrollView/hooks.d.ts +2 -0
- package/lib/typescript/components/KeyboardChatScrollView/index.d.ts +17 -0
- package/lib/typescript/components/KeyboardChatScrollView/types.d.ts +113 -0
- package/lib/typescript/components/KeyboardChatScrollView/useChatKeyboard/helpers.d.ts +132 -0
- package/lib/typescript/components/KeyboardChatScrollView/useChatKeyboard/index.d.ts +18 -0
- package/lib/typescript/components/KeyboardChatScrollView/useChatKeyboard/index.ios.d.ts +21 -0
- package/lib/typescript/components/KeyboardChatScrollView/useChatKeyboard/types.d.ts +37 -0
- package/lib/typescript/components/KeyboardChatScrollView/useEndVisible.d.ts +17 -0
- package/lib/typescript/components/KeyboardChatScrollView/useExtraContentPadding/index.d.ts +45 -0
- package/lib/typescript/components/KeyboardToolbar/Button.d.ts +2 -2
- package/lib/typescript/components/KeyboardToolbar/compound/components/Background.d.ts +6 -0
- package/lib/typescript/components/KeyboardToolbar/compound/components/Content.d.ts +7 -0
- package/lib/typescript/components/KeyboardToolbar/compound/components/Done.d.ts +7 -0
- package/lib/typescript/components/KeyboardToolbar/compound/components/Next.d.ts +4 -0
- package/lib/typescript/components/KeyboardToolbar/compound/components/Prev.d.ts +4 -0
- package/lib/typescript/components/KeyboardToolbar/compound/components/index.d.ts +5 -0
- package/lib/typescript/components/KeyboardToolbar/compound/components/types.d.ts +14 -0
- package/lib/typescript/components/KeyboardToolbar/compound/context.d.ts +9 -0
- package/lib/typescript/components/KeyboardToolbar/constants.d.ts +10 -0
- package/lib/typescript/components/KeyboardToolbar/index.d.ts +12 -45
- package/lib/typescript/components/KeyboardToolbar/types.d.ts +24 -1
- package/lib/typescript/components/ScrollViewWithBottomPadding/index.d.ts +30 -0
- package/lib/typescript/components/ScrollViewWithBottomPadding/styles.d.ts +7 -0
- package/lib/typescript/components/hooks/useCombinedRef.d.ts +3 -0
- package/lib/typescript/components/hooks/useScrollState.d.ts +17 -0
- package/lib/typescript/components/index.d.ts +3 -0
- package/lib/typescript/constants.d.ts +1 -0
- package/lib/typescript/context.d.ts +1 -0
- package/lib/typescript/hooks/index.d.ts +2 -0
- package/lib/typescript/hooks/useKeyboardState/index.d.ts +4 -0
- package/lib/typescript/index.d.ts +4 -3
- package/lib/typescript/internal.d.ts +4 -0
- package/lib/typescript/specs/ClippingScrollViewDecoratorViewNativeComponent.d.ts +10 -0
- package/lib/typescript/specs/KeyboardControllerViewNativeComponent.d.ts +4 -0
- package/lib/typescript/specs/KeyboardToolbarGroupViewNativeComponent.d.ts +6 -0
- package/lib/typescript/specs/NativeKeyboardController.d.ts +6 -2
- package/lib/typescript/types.d.ts +81 -5
- package/lib/typescript/utils/findNodeHandle/index.d.ts +4 -0
- package/lib/typescript/utils/findNodeHandle/index.native.d.ts +2 -0
- package/lib/typescript/views/KeyboardExtender/index.d.ts +5 -0
- package/lib/typescript/views/index.d.ts +1 -0
- package/package.json +183 -174
- package/src/animated.tsx +248 -255
- package/src/architecture.ts +1 -0
- package/src/bindings.native.ts +97 -62
- package/src/bindings.ts +81 -42
- package/src/compat.ts +44 -0
- package/src/components/KeyboardAvoidingView/hooks.ts +130 -123
- package/src/components/KeyboardAvoidingView/index.tsx +232 -188
- package/src/components/KeyboardAwareScrollView/index.tsx +452 -389
- package/src/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts +133 -133
- package/src/components/KeyboardAwareScrollView/utils.ts +41 -41
- package/src/components/KeyboardChatScrollView/hooks.ts +2 -0
- package/src/components/KeyboardChatScrollView/index.tsx +164 -0
- package/src/components/KeyboardChatScrollView/types.ts +117 -0
- package/src/components/KeyboardChatScrollView/useChatKeyboard/helpers.ts +268 -0
- package/src/components/KeyboardChatScrollView/useChatKeyboard/index.ios.ts +260 -0
- package/src/components/KeyboardChatScrollView/useChatKeyboard/index.ts +374 -0
- package/src/components/KeyboardChatScrollView/useChatKeyboard/types.ts +39 -0
- package/src/components/KeyboardChatScrollView/useEndVisible.ts +66 -0
- package/src/components/KeyboardChatScrollView/useExtraContentPadding/index.ts +149 -0
- package/src/components/KeyboardStickyView/index.tsx +66 -66
- package/src/components/KeyboardToolbar/Arrow.tsx +80 -80
- package/src/components/KeyboardToolbar/Button.tsx +98 -98
- package/src/components/KeyboardToolbar/colors.native.ts +37 -37
- package/src/components/KeyboardToolbar/colors.ts +16 -16
- package/src/components/KeyboardToolbar/compound/components/Background.tsx +9 -0
- package/src/components/KeyboardToolbar/compound/components/Content.tsx +25 -0
- package/src/components/KeyboardToolbar/compound/components/Done.tsx +57 -0
- package/src/components/KeyboardToolbar/compound/components/Next.tsx +49 -0
- package/src/components/KeyboardToolbar/compound/components/Prev.tsx +49 -0
- package/src/components/KeyboardToolbar/compound/components/index.ts +5 -0
- package/src/components/KeyboardToolbar/compound/components/types.ts +15 -0
- package/src/components/KeyboardToolbar/compound/context.ts +25 -0
- package/src/components/KeyboardToolbar/constants.ts +14 -0
- package/src/components/KeyboardToolbar/index.tsx +220 -223
- package/src/components/KeyboardToolbar/types.ts +72 -40
- package/src/components/ScrollViewWithBottomPadding/index.tsx +216 -0
- package/src/components/ScrollViewWithBottomPadding/styles.ts +10 -0
- package/src/components/hooks/useColorScheme.ts +6 -6
- package/src/components/hooks/useCombinedRef.ts +22 -0
- package/src/components/hooks/useScrollState.ts +81 -0
- package/src/components/index.ts +14 -11
- package/src/constants.ts +23 -19
- package/src/context.ts +70 -68
- package/src/hooks/index.ts +91 -90
- package/src/hooks/useKeyboardState/index.ts +52 -0
- package/src/hooks/useWindowDimensions/index.android.ts +38 -38
- package/src/hooks/useWindowDimensions/index.ts +1 -1
- package/src/index.ts +27 -23
- package/src/internal.ts +146 -84
- package/src/module.ts +64 -52
- package/src/reanimated.native.ts +132 -132
- package/src/reanimated.ts +29 -29
- package/src/specs/ClippingScrollViewDecoratorViewNativeComponent.ts +19 -0
- package/src/specs/KeyboardControllerViewNativeComponent.ts +82 -71
- package/src/specs/KeyboardGestureAreaNativeComponent.ts +21 -20
- package/src/specs/KeyboardToolbarGroupViewNativeComponent.ts +10 -0
- package/src/specs/NativeKeyboardController.ts +23 -19
- package/src/specs/NativeStatusBarManagerCompat.ts +14 -14
- package/src/specs/OverKeyboardViewNativeComponent.ts +12 -12
- package/src/types.ts +330 -243
- package/src/utils/findNodeHandle/index.native.ts +3 -0
- package/src/utils/findNodeHandle/index.ts +6 -0
- package/src/utils.ts +1 -1
- package/src/views/KeyboardExtender/index.tsx +30 -0
- package/src/views/OverKeyboardView/index.tsx +43 -43
- package/src/views/index.ts +2 -1
- package/lib/commonjs/monkey-patch.android.js +0 -57
- package/lib/commonjs/monkey-patch.android.js.map +0 -1
- package/lib/commonjs/monkey-patch.js +0 -11
- package/lib/commonjs/monkey-patch.js.map +0 -1
- package/lib/module/monkey-patch.android.js +0 -47
- package/lib/module/monkey-patch.android.js.map +0 -1
- package/lib/module/monkey-patch.js +0 -5
- package/lib/module/monkey-patch.js.map +0 -1
- package/lib/typescript/monkey-patch.android.d.ts +0 -2
- package/lib/typescript/monkey-patch.d.ts +0 -2
- package/src/monkey-patch.android.ts +0 -44
- package/src/monkey-patch.ts +0 -4
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export { default as KeyboardAvoidingView } from "./KeyboardAvoidingView";
|
|
2
2
|
export { default as KeyboardStickyView } from "./KeyboardStickyView";
|
|
3
3
|
export { default as KeyboardAwareScrollView } from "./KeyboardAwareScrollView";
|
|
4
|
+
export { default as KeyboardChatScrollView } from "./KeyboardChatScrollView";
|
|
4
5
|
export { default as KeyboardToolbar, DefaultKeyboardToolbarTheme, } from "./KeyboardToolbar";
|
|
5
6
|
export type { KeyboardAvoidingViewProps } from "./KeyboardAvoidingView";
|
|
6
7
|
export type { KeyboardStickyViewProps } from "./KeyboardStickyView";
|
|
7
8
|
export type { KeyboardAwareScrollViewProps } from "./KeyboardAwareScrollView";
|
|
9
|
+
export type { KeyboardAwareScrollViewRef } from "./KeyboardAwareScrollView";
|
|
10
|
+
export type { KeyboardChatScrollViewProps } from "./KeyboardChatScrollView/types";
|
|
8
11
|
export type { KeyboardToolbarProps } from "./KeyboardToolbar";
|
|
@@ -15,6 +15,7 @@ export type KeyboardAnimationContext = {
|
|
|
15
15
|
animated: AnimatedContext;
|
|
16
16
|
reanimated: ReanimatedContext;
|
|
17
17
|
layout: SharedValue<FocusedInputLayoutChangedEvent | null>;
|
|
18
|
+
update: () => Promise<void>;
|
|
18
19
|
setKeyboardHandlers: (handlers: KeyboardHandlers) => void;
|
|
19
20
|
setInputHandlers: (handlers: FocusedInputHandlers) => void;
|
|
20
21
|
setEnabled: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -12,6 +12,8 @@ export declare function useKeyboardController(): {
|
|
|
12
12
|
};
|
|
13
13
|
export declare function useReanimatedFocusedInput(): {
|
|
14
14
|
input: import("react-native-reanimated").SharedValue<import("../types").FocusedInputLayoutChangedEvent | null>;
|
|
15
|
+
update: () => Promise<void>;
|
|
15
16
|
};
|
|
16
17
|
export declare function useFocusedInputHandler(handler?: FocusedInputHandler, deps?: DependencyList): void;
|
|
17
18
|
export * from "./useWindowDimensions";
|
|
19
|
+
export * from "./useKeyboardState";
|
|
@@ -5,6 +5,7 @@ export * from "./hooks";
|
|
|
5
5
|
export * from "./constants";
|
|
6
6
|
export * from "./module";
|
|
7
7
|
export * from "./types";
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export {
|
|
8
|
+
export * from "./compat";
|
|
9
|
+
export { KeyboardChatScrollView, KeyboardAvoidingView, KeyboardStickyView, KeyboardAwareScrollView, KeyboardToolbar, DefaultKeyboardToolbarTheme, } from "./components";
|
|
10
|
+
export type { KeyboardChatScrollViewProps, KeyboardAvoidingViewProps, KeyboardStickyViewProps, KeyboardAwareScrollViewProps, KeyboardAwareScrollViewRef, KeyboardToolbarProps, } from "./components";
|
|
11
|
+
export { OverKeyboardView, KeyboardExtender } from "./views";
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Animated } from "react-native";
|
|
2
|
+
import { findNodeHandle } from "./utils/findNodeHandle";
|
|
3
|
+
import type { EventHandlerProcessed } from "react-native-reanimated";
|
|
2
4
|
import type { Handlers } from "./types";
|
|
5
|
+
type ComponentOrHandle = Parameters<typeof findNodeHandle>[0];
|
|
6
|
+
export declare function useEventHandlerRegistration(viewTagRef: React.MutableRefObject<ComponentOrHandle>): (handler: EventHandlerProcessed<never, never>) => () => void;
|
|
3
7
|
type UntypedHandler = Record<string, (event: never) => void>;
|
|
4
8
|
type SharedHandlersReturnType<T extends UntypedHandler> = [
|
|
5
9
|
(handler: Handlers<T>) => void,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HostComponent } from "react-native";
|
|
2
|
+
import type { ViewProps } from "react-native";
|
|
3
|
+
import type { Double } from "react-native/Libraries/Types/CodegenTypes";
|
|
4
|
+
export interface NativeProps extends ViewProps {
|
|
5
|
+
contentInsetBottom: Double;
|
|
6
|
+
contentInsetTop: Double;
|
|
7
|
+
applyWorkaroundForContentInsetHitTestBug?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: HostComponent<NativeProps>;
|
|
10
|
+
export default _default;
|
|
@@ -50,5 +50,9 @@ export interface NativeProps extends ViewProps {
|
|
|
50
50
|
onFocusedInputTextChanged?: DirectEventHandler<FocusedInputTextChangedEvent>;
|
|
51
51
|
onFocusedInputSelectionChanged?: DirectEventHandler<FocusedInputSelectionChangedEvent>;
|
|
52
52
|
}
|
|
53
|
+
interface NativeCommands {
|
|
54
|
+
synchronizeFocusedInputLayout: (viewRef: React.ElementRef<HostComponent<NativeProps>>) => void;
|
|
55
|
+
}
|
|
56
|
+
export declare const Commands: NativeCommands;
|
|
53
57
|
declare const _default: HostComponent<NativeProps>;
|
|
54
58
|
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HostComponent } from "react-native";
|
|
2
|
+
import type { ViewProps } from "react-native/Libraries/Components/View/ViewPropTypes";
|
|
3
|
+
export interface NativeProps extends ViewProps {
|
|
4
|
+
}
|
|
5
|
+
declare const _default: HostComponent<NativeProps>;
|
|
6
|
+
export default _default;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { TurboModule } from "react-native";
|
|
2
2
|
export interface Spec extends TurboModule {
|
|
3
|
-
readonly getConstants: () => {
|
|
3
|
+
readonly getConstants: () => {
|
|
4
|
+
keyboardBorderRadius: number;
|
|
5
|
+
};
|
|
4
6
|
setInputMode(mode: number): void;
|
|
5
7
|
setDefaultMode(): void;
|
|
6
|
-
|
|
8
|
+
preload(): void;
|
|
9
|
+
dismiss(keepFocus: boolean, animated: boolean): void;
|
|
7
10
|
setFocusTo(direction: string): void;
|
|
11
|
+
viewPositionInWindow(viewTag: number): Promise<object>;
|
|
8
12
|
addListener: (eventName: string) => void;
|
|
9
13
|
removeListeners: (count: number) => void;
|
|
10
14
|
}
|
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
import type { PropsWithChildren } from "react";
|
|
2
2
|
import type { EmitterSubscription, NativeSyntheticEvent, TextInputProps, ViewProps } from "react-native";
|
|
3
|
+
export type KeyboardProviderProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Set the value to `true`, if you use translucent status bar on Android.
|
|
7
|
+
* If you already control status bar translucency via `react-native-screens`
|
|
8
|
+
* or `StatusBar` component from `react-native`, you can ignore it.
|
|
9
|
+
* Defaults to `false`.
|
|
10
|
+
*
|
|
11
|
+
* @platform android
|
|
12
|
+
* @see https://github.com/kirillzyusko/react-native-keyboard-controller/issues/14
|
|
13
|
+
*/
|
|
14
|
+
statusBarTranslucent?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Set the value to `true`, if you use translucent navigation bar on Android.
|
|
17
|
+
* Defaults to `false`.
|
|
18
|
+
*
|
|
19
|
+
* @platform android
|
|
20
|
+
* @see https://github.com/kirillzyusko/react-native-keyboard-controller/issues/119
|
|
21
|
+
*/
|
|
22
|
+
navigationBarTranslucent?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* A boolean property indicating whether to keep edge-to-edge mode always enabled (even when you disable the module).
|
|
25
|
+
* Defaults to `false`.
|
|
26
|
+
*
|
|
27
|
+
* @platform android
|
|
28
|
+
* @see https://github.com/kirillzyusko/react-native-keyboard-controller/issues/592
|
|
29
|
+
*/
|
|
30
|
+
preserveEdgeToEdge?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* A boolean prop indicating whether the module is enabled. It indicate only initial state
|
|
33
|
+
* (if you try to change this prop after component mount it will not have any effect).
|
|
34
|
+
* To change the property in runtime use `useKeyboardController` hook and `setEnabled` method.
|
|
35
|
+
* Defaults to `true`.
|
|
36
|
+
*/
|
|
37
|
+
enabled?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* A boolean prop indicating whether to preload the keyboard to reduce time-to-interaction (TTI) on first input focus.
|
|
40
|
+
* Defaults to `true`.
|
|
41
|
+
*
|
|
42
|
+
* @platform ios
|
|
43
|
+
*/
|
|
44
|
+
preload?: boolean;
|
|
45
|
+
};
|
|
3
46
|
export type NativeEvent = {
|
|
4
47
|
progress: number;
|
|
5
48
|
height: number;
|
|
@@ -81,41 +124,74 @@ export type KeyboardGestureAreaProps = {
|
|
|
81
124
|
export type OverKeyboardViewProps = PropsWithChildren<{
|
|
82
125
|
visible: boolean;
|
|
83
126
|
}>;
|
|
127
|
+
export type ClippingScrollViewProps = PropsWithChildren<ViewProps & {
|
|
128
|
+
/** An additional space that gets applied to the bottom of the ScrollView content. Default is 0. */
|
|
129
|
+
contentInsetBottom?: number;
|
|
130
|
+
/** An additional space that gets applied to the top of the ScrollView content. Default is 0. */
|
|
131
|
+
contentInsetTop?: number;
|
|
132
|
+
applyWorkaroundForContentInsetHitTestBug?: boolean;
|
|
133
|
+
}>;
|
|
134
|
+
export type KeyboardBackgroundViewProps = PropsWithChildren<ViewProps>;
|
|
135
|
+
export type KeyboardToolbarGroupViewProps = PropsWithChildren<ViewProps>;
|
|
136
|
+
export type KeyboardExtenderProps = PropsWithChildren<{
|
|
137
|
+
/** Controls whether this `KeyboardExtender` instance should take effect. Default is `true`. */
|
|
138
|
+
enabled?: boolean;
|
|
139
|
+
}>;
|
|
84
140
|
export type Direction = "next" | "prev" | "current";
|
|
85
141
|
export type DismissOptions = {
|
|
86
142
|
keepFocus: boolean;
|
|
143
|
+
animated: boolean;
|
|
87
144
|
};
|
|
88
145
|
export type KeyboardControllerModule = {
|
|
89
146
|
setDefaultMode: () => void;
|
|
90
147
|
setInputMode: (mode: number) => void;
|
|
91
|
-
|
|
148
|
+
preload: () => void;
|
|
149
|
+
dismiss: (options?: Partial<DismissOptions>) => Promise<void>;
|
|
92
150
|
setFocusTo: (direction: Direction) => void;
|
|
93
151
|
isVisible: () => boolean;
|
|
94
|
-
state: () => KeyboardEventData
|
|
152
|
+
state: () => KeyboardEventData;
|
|
95
153
|
addListener: (eventName: string) => void;
|
|
96
154
|
removeListeners: (count: number) => void;
|
|
155
|
+
getConstants: () => {
|
|
156
|
+
keyboardBorderRadius: number;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
export type ViewPositionInWindowResult = {
|
|
160
|
+
x: number;
|
|
161
|
+
y: number;
|
|
162
|
+
width: number;
|
|
163
|
+
height: number;
|
|
97
164
|
};
|
|
98
165
|
export type KeyboardControllerNativeModule = {
|
|
99
166
|
setDefaultMode: () => void;
|
|
100
167
|
setInputMode: (mode: number) => void;
|
|
101
|
-
|
|
168
|
+
preload: () => void;
|
|
169
|
+
dismiss: (keepFocus: boolean, animated: boolean) => void;
|
|
102
170
|
setFocusTo: (direction: Direction) => void;
|
|
171
|
+
viewPositionInWindow: (viewTag: number) => Promise<ViewPositionInWindowResult>;
|
|
172
|
+
getConstants: () => {
|
|
173
|
+
keyboardBorderRadius: number;
|
|
174
|
+
};
|
|
103
175
|
addListener: (eventName: string) => void;
|
|
104
176
|
removeListeners: (count: number) => void;
|
|
105
177
|
};
|
|
106
178
|
export type KeyboardControllerEvents = "keyboardWillShow" | "keyboardDidShow" | "keyboardWillHide" | "keyboardDidHide";
|
|
107
179
|
export type KeyboardEventData = {
|
|
108
180
|
height: number;
|
|
181
|
+
tag: number;
|
|
109
182
|
duration: number;
|
|
110
183
|
timestamp: number;
|
|
111
184
|
target: number;
|
|
112
185
|
type: NonNullable<TextInputProps["keyboardType"]>;
|
|
113
|
-
appearance:
|
|
186
|
+
appearance: "dark" | "light";
|
|
114
187
|
};
|
|
188
|
+
export type IKeyboardState = {
|
|
189
|
+
isVisible: boolean;
|
|
190
|
+
} & KeyboardEventData;
|
|
115
191
|
export type KeyboardEventsModule = {
|
|
116
192
|
addListener: (name: KeyboardControllerEvents, cb: (e: KeyboardEventData) => void) => EmitterSubscription;
|
|
117
193
|
};
|
|
118
|
-
export type FocusedInputAvailableEvents = "focusDidSet";
|
|
194
|
+
export type FocusedInputAvailableEvents = "focusDidSet" | "layoutDidSynchronize";
|
|
119
195
|
export type FocusedInputEventData = {
|
|
120
196
|
current: number;
|
|
121
197
|
count: number;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { KeyboardExtenderProps } from "../../types";
|
|
3
|
+
import type { PropsWithChildren } from "react";
|
|
4
|
+
declare const KeyboardExtender: ({ children, enabled, }: PropsWithChildren<KeyboardExtenderProps>) => React.JSX.Element;
|
|
5
|
+
export default KeyboardExtender;
|
package/package.json
CHANGED
|
@@ -1,174 +1,183 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@react-native-ohos/react-native-keyboard-controller",
|
|
3
|
-
"version": "1.17.0
|
|
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
|
-
"!
|
|
21
|
-
"!android
|
|
22
|
-
"!android
|
|
23
|
-
"!android/
|
|
24
|
-
"!android/gradlew",
|
|
25
|
-
"!
|
|
26
|
-
"!ios/
|
|
27
|
-
"
|
|
28
|
-
"!**/
|
|
29
|
-
"!**/
|
|
30
|
-
"
|
|
31
|
-
],
|
|
32
|
-
"scripts": {
|
|
33
|
-
"format": "prettier '**/*' --ignore-unknown --write",
|
|
34
|
-
"test": "jest",
|
|
35
|
-
"typescript": "tsc --noEmit --project tsconfig.build.json",
|
|
36
|
-
"lint": "eslint --quiet \"**/*.{js,ts,tsx}\"",
|
|
37
|
-
"lint-clang": "find ios/ -iname *.h -o -iname *.m -o -iname *.mm | grep -v -e Pods -e build | xargs clang-format -i -n --Werror",
|
|
38
|
-
"prepare": "bob build",
|
|
39
|
-
"release": "release-it",
|
|
40
|
-
"example": "yarn --cwd example",
|
|
41
|
-
"pods": "cd example && pod-install --quiet",
|
|
42
|
-
"bootstrap": "yarn example && yarn && yarn pods"
|
|
43
|
-
},
|
|
44
|
-
"keywords": [
|
|
45
|
-
"react-native",
|
|
46
|
-
"keyboard",
|
|
47
|
-
"interactive",
|
|
48
|
-
"dismiss",
|
|
49
|
-
"animation",
|
|
50
|
-
"focused input",
|
|
51
|
-
"text changed",
|
|
52
|
-
"selection changed",
|
|
53
|
-
"avoiding view",
|
|
54
|
-
"avoid keyboard",
|
|
55
|
-
"sticky view",
|
|
56
|
-
"over keyboard view",
|
|
57
|
-
"keyboard aware scroll view",
|
|
58
|
-
"keyboard toolbar",
|
|
59
|
-
"keyboard done button",
|
|
60
|
-
"keyboard next button",
|
|
61
|
-
"keyboard previous button",
|
|
62
|
-
"ios",
|
|
63
|
-
"android",
|
|
64
|
-
"harmony"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"@
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
84
|
-
"@
|
|
85
|
-
"@
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"eslint": "^
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"eslint
|
|
92
|
-
"eslint-
|
|
93
|
-
"eslint-
|
|
94
|
-
"eslint-plugin-
|
|
95
|
-
"eslint-plugin-
|
|
96
|
-
"eslint-plugin-
|
|
97
|
-
"eslint-plugin-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"react
|
|
106
|
-
"react-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"react
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
},
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
},
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-native-ohos/react-native-keyboard-controller",
|
|
3
|
+
"version": "1.17.0",
|
|
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
|
+
"!build"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"format": "prettier '**/*' --ignore-unknown --write",
|
|
34
|
+
"test": "jest",
|
|
35
|
+
"typescript": "tsc --noEmit --project tsconfig.build.json",
|
|
36
|
+
"lint": "eslint --quiet \"**/*.{js,ts,tsx}\"",
|
|
37
|
+
"lint-clang": "find ios/ -iname *.h -o -iname *.m -o -iname *.mm | grep -v -e Pods -e build | xargs clang-format -i -n --Werror",
|
|
38
|
+
"prepare": "bob build",
|
|
39
|
+
"release": "release-it",
|
|
40
|
+
"example": "yarn --cwd example",
|
|
41
|
+
"pods": "cd example && pod-install --quiet",
|
|
42
|
+
"bootstrap": "yarn example && yarn && yarn pods"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"react-native",
|
|
46
|
+
"keyboard",
|
|
47
|
+
"interactive",
|
|
48
|
+
"dismiss",
|
|
49
|
+
"animation",
|
|
50
|
+
"focused input",
|
|
51
|
+
"text changed",
|
|
52
|
+
"selection changed",
|
|
53
|
+
"avoiding view",
|
|
54
|
+
"avoid keyboard",
|
|
55
|
+
"sticky view",
|
|
56
|
+
"over keyboard view",
|
|
57
|
+
"keyboard aware scroll view",
|
|
58
|
+
"keyboard toolbar",
|
|
59
|
+
"keyboard done button",
|
|
60
|
+
"keyboard next button",
|
|
61
|
+
"keyboard previous button",
|
|
62
|
+
"ios",
|
|
63
|
+
"android",
|
|
64
|
+
"harmony",
|
|
65
|
+
"ohos",
|
|
66
|
+
"openharmony",
|
|
67
|
+
"rnoh"
|
|
68
|
+
],
|
|
69
|
+
"repository": "https://gitcode.com/CPF-RN/rntpc_react-native-keyboard-controller",
|
|
70
|
+
"author": "Kiryl Ziusko <zyusko.kirik@gmail.com> (https://github.com/kirillzyusko)",
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"bugs": {
|
|
73
|
+
"url": "https://gitcode.com/CPF-RN/rntpc_react-native-keyboard-controller/issues"
|
|
74
|
+
},
|
|
75
|
+
"homepage": "https://gitcode.com/CPF-RN/rntpc_react-native-keyboard-controller/tree/br_rnoh0.82#readme",
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"registry": "https://registry.npmjs.org/"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
81
|
+
"@react-native/babel-preset": "0.82.0",
|
|
82
|
+
"@react-native/eslint-config": "0.82.0",
|
|
83
|
+
"@release-it/conventional-changelog": "^2.0.0",
|
|
84
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
85
|
+
"@types/jest": "^29.5.13",
|
|
86
|
+
"@types/react": "^18.2.6",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^6.7.4",
|
|
88
|
+
"@typescript-eslint/parser": "^6.7.4",
|
|
89
|
+
"clang-format": "^1.8.0",
|
|
90
|
+
"commitlint": "^11.0.0",
|
|
91
|
+
"eslint": "^8.19.0",
|
|
92
|
+
"eslint-config-prettier": "^8.5.0",
|
|
93
|
+
"eslint-import-resolver-typescript": "^3.6.1",
|
|
94
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
95
|
+
"eslint-plugin-ft-flow": "^3.0.11",
|
|
96
|
+
"eslint-plugin-import": "^2.28.1",
|
|
97
|
+
"eslint-plugin-jest": "^26.5.3",
|
|
98
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
99
|
+
"eslint-plugin-react-compiler": "^0.0.0-experimental-0998c1e-20240625",
|
|
100
|
+
"eslint-plugin-react-perf": "^3.3.2",
|
|
101
|
+
"husky": "^6.0.0",
|
|
102
|
+
"jest": "^29.6.3",
|
|
103
|
+
"pod-install": "^0.1.0",
|
|
104
|
+
"prettier": "^2.8.8",
|
|
105
|
+
"react": "18.3.1",
|
|
106
|
+
"react-native": "0.82.1",
|
|
107
|
+
"react-native-builder-bob": "^0.18.0",
|
|
108
|
+
"react-native-reanimated": "3.18.0",
|
|
109
|
+
"react-test-renderer": "18.2.0",
|
|
110
|
+
"release-it": "^14.2.2",
|
|
111
|
+
"typescript": "5.6.3"
|
|
112
|
+
},
|
|
113
|
+
"peerDependencies": {
|
|
114
|
+
"react": "*",
|
|
115
|
+
"react-native": "*",
|
|
116
|
+
"react-native-reanimated": ">=3.0.0",
|
|
117
|
+
"react-native-keyboard-controller": "1.21.8"
|
|
118
|
+
},
|
|
119
|
+
"jest": {
|
|
120
|
+
"preset": "react-native",
|
|
121
|
+
"modulePathIgnorePatterns": [
|
|
122
|
+
"<rootDir>/example/node_modules",
|
|
123
|
+
"<rootDir>/lib/"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"commitlint": {
|
|
127
|
+
"extends": [
|
|
128
|
+
"@commitlint/config-conventional"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"release-it": {
|
|
132
|
+
"git": {
|
|
133
|
+
"commitMessage": "chore: release ${version}",
|
|
134
|
+
"tagName": "v${version}"
|
|
135
|
+
},
|
|
136
|
+
"npm": {
|
|
137
|
+
"publish": true
|
|
138
|
+
},
|
|
139
|
+
"github": {
|
|
140
|
+
"release": true
|
|
141
|
+
},
|
|
142
|
+
"plugins": {
|
|
143
|
+
"@release-it/conventional-changelog": {
|
|
144
|
+
"preset": "angular"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"prettier": {
|
|
149
|
+
"quoteProps": "consistent",
|
|
150
|
+
"trailingComma": "all"
|
|
151
|
+
},
|
|
152
|
+
"react-native-builder-bob": {
|
|
153
|
+
"source": "src",
|
|
154
|
+
"output": "lib",
|
|
155
|
+
"targets": [
|
|
156
|
+
"commonjs",
|
|
157
|
+
"module",
|
|
158
|
+
[
|
|
159
|
+
"typescript",
|
|
160
|
+
{
|
|
161
|
+
"project": "tsconfig.build.json"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"codegenConfig": {
|
|
167
|
+
"name": "reactnativekeyboardcontroller",
|
|
168
|
+
"type": "all",
|
|
169
|
+
"jsSrcsDir": "./src/specs",
|
|
170
|
+
"android": {
|
|
171
|
+
"javaPackageName": "com.reactnativekeyboardcontroller"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"harmony": {
|
|
175
|
+
"alias": "react-native-keyboard-controller",
|
|
176
|
+
"autolinking": {
|
|
177
|
+
"etsPackageClassName": "RNKeyboardControllerPackage",
|
|
178
|
+
"cppPackageClassName": "RNKeyboardControllerPackage",
|
|
179
|
+
"cmakeLibraryTargetName": "rnoh_keyboard_controller",
|
|
180
|
+
"ohPackageName": "@react-native-ohos/react-native-keyboard-controller"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|