@teamnhz/rn-ui-toolkit 1.4.6 → 1.4.7

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.
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
3
2
  import { ScrollViewProps } from "react-native";
4
3
  import type { KeyboardAwareProps } from "react-native-keyboard-aware-scroll-view";
5
4
  /**
@@ -8,5 +7,5 @@ import type { KeyboardAwareProps } from "react-native-keyboard-aware-scroll-view
8
7
  * - No conflict props
9
8
  * - Clean + reusable wrapper
10
9
  */
11
- declare const KeyboardScroll: React.ForwardRefExoticComponent<KeyboardAwareProps & ScrollViewProps & React.RefAttributes<KeyboardAwareScrollView>>;
10
+ declare const KeyboardScroll: React.ForwardRefExoticComponent<KeyboardAwareProps & ScrollViewProps & React.RefAttributes<any>>;
12
11
  export default KeyboardScroll;
@@ -6,7 +6,7 @@ import { KeyboardAwareScrollView, } from "react-native-keyboard-aware-scroll-vie
6
6
  * - No conflict props
7
7
  * - Clean + reusable wrapper
8
8
  */
9
- const KeyboardScroll = forwardRef(({ children, ...restProps }, ref) => {
10
- return (React.createElement(KeyboardAwareScrollView, { ref: ref, showsVerticalScrollIndicator: false, keyboardShouldPersistTaps: "handled", bounces: false, ...restProps }, children));
9
+ const KeyboardScroll = forwardRef((props, ref) => {
10
+ return (React.createElement(KeyboardAwareScrollView, { ref: ref, enableOnAndroid: true, enableAutomaticScroll: true, extraScrollHeight: 120, extraHeight: 120, keyboardOpeningTime: 0, keyboardShouldPersistTaps: "handled", showsVerticalScrollIndicator: false, bounces: false, ...props }, props.children));
11
11
  });
12
12
  export default KeyboardScroll;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamnhz/rn-ui-toolkit",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [