react-native-ui-lib 8.1.8-snapshot.7626 → 8.1.8-snapshot.7630
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.
|
@@ -75,7 +75,11 @@ export type KeyboardTrackingViewProps = ViewProps & {
|
|
|
75
75
|
style?: StyleProp<ViewStyle>;
|
|
76
76
|
children?: React.ReactNode;
|
|
77
77
|
};
|
|
78
|
-
declare const
|
|
78
|
+
declare const defaultProps: {};
|
|
79
|
+
declare const KeyboardTrackingView: React.ForwardRefExoticComponent<Omit<KeyboardTrackingViewProps, "ref"> & React.RefAttributes<unknown>>;
|
|
80
|
+
type KeyboardTrackingViewType = typeof KeyboardTrackingView & {
|
|
79
81
|
scrollBehaviors: typeof SCROLL_BEHAVIORS;
|
|
82
|
+
defaultProps: typeof defaultProps;
|
|
80
83
|
};
|
|
84
|
+
declare const _default: KeyboardTrackingViewType;
|
|
81
85
|
export default _default;
|
|
@@ -8,15 +8,16 @@ const SCROLL_BEHAVIORS = {
|
|
|
8
8
|
SCROLL_TO_BOTTOM_INVERTED_ONLY: NativeModules.KeyboardTrackingViewTempManager?.KeyboardTrackingScrollBehaviorScrollToBottomInvertedOnly,
|
|
9
9
|
FIXED_OFFSET: NativeModules.KeyboardTrackingViewTempManager?.KeyboardTrackingScrollBehaviorFixedOffset
|
|
10
10
|
};
|
|
11
|
+
const defaultProps = {};
|
|
11
12
|
const KeyboardTrackingView = forwardRef(({
|
|
12
13
|
children,
|
|
13
14
|
...others
|
|
14
15
|
}, ref) => {
|
|
15
16
|
const KeyboardTrackingViewContainer = isAndroid ? KeyboardTrackingViewAndroid : KeyboardTrackingViewIOS;
|
|
16
|
-
return <KeyboardTrackingViewContainer {...others} ref={ref}>
|
|
17
|
+
return <KeyboardTrackingViewContainer {...defaultProps} {...others} ref={ref}>
|
|
17
18
|
{children}
|
|
18
19
|
</KeyboardTrackingViewContainer>;
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
KeyboardTrackingView.defaultProps = defaultProps;
|
|
22
|
+
KeyboardTrackingView.scrollBehaviors = SCROLL_BEHAVIORS;
|
|
23
|
+
export default KeyboardTrackingView;
|
package/lib/package.json
CHANGED