uilib-native 5.0.0-snapshot.7192 → 5.0.0-snapshot.7207
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/components/HighlighterOverlayView/HighlighterViewNativeComponent.d.ts +3 -4
- package/components/HighlighterOverlayView/HighlighterViewNativeComponent.js +9 -2
- package/components/HighlighterOverlayView/index.d.ts +1 -1
- package/components/HighlighterOverlayView/index.js +1 -1
- package/components/HighlighterOverlayView/index.web.d.ts +1 -1
- package/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.d.ts +3 -4
- package/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.js +9 -2
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
1
|
+
import { type ViewProps } from 'react-native';
|
|
3
2
|
import type { Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
3
|
export interface HighlightFrame {
|
|
5
4
|
x: Float;
|
|
@@ -57,5 +56,5 @@ export interface NativeProps extends ViewProps {
|
|
|
57
56
|
*/
|
|
58
57
|
innerPadding?: WithDefault<Float, 0>;
|
|
59
58
|
}
|
|
60
|
-
declare const
|
|
61
|
-
export default
|
|
59
|
+
declare const HighlighterViewNativeComponent: import("react-native").HostComponent<NativeProps>;
|
|
60
|
+
export default HighlighterViewNativeComponent;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
// import type {ViewProps} from 'react-native';
|
|
2
|
+
import { requireNativeComponent } from 'react-native';
|
|
3
|
+
|
|
4
|
+
// import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
5
|
+
|
|
6
|
+
// export default codegenNativeComponent<NativeProps>('HighlighterView');
|
|
7
|
+
|
|
8
|
+
const HighlighterViewNativeComponent = requireNativeComponent('HighlighterView');
|
|
9
|
+
export default HighlighterViewNativeComponent;
|
|
@@ -19,7 +19,7 @@ export type HighlighterOverlayViewProps = {
|
|
|
19
19
|
onRequestClose?: () => void;
|
|
20
20
|
highlightFrame?: HighlightFrameType;
|
|
21
21
|
style?: ViewStyle;
|
|
22
|
-
highlightViewTag?: number
|
|
22
|
+
highlightViewTag?: number;
|
|
23
23
|
children?: JSX.Element[] | JSX.Element;
|
|
24
24
|
highlightViewTagParams?: HighlightViewTagParams;
|
|
25
25
|
minimumRectSize?: Pick<HighlightFrameType, 'width' | 'height'>;
|
|
@@ -41,7 +41,7 @@ const HighlighterOverlayView = props => {
|
|
|
41
41
|
<HighlighterViewNativeComponent highlightFrame={highlightFrame} style={[style, {
|
|
42
42
|
...StyleSheet.absoluteFillObject,
|
|
43
43
|
backgroundColor: 'transparent'
|
|
44
|
-
}]} overlayColor={overlayColorToUse} borderRadius={borderRadius} strokeColor={strokeColorToUse} strokeWidth={strokeWidth} highlightViewTag={highlightViewTag
|
|
44
|
+
}]} overlayColor={overlayColorToUse} borderRadius={borderRadius} strokeColor={strokeColorToUse} strokeWidth={strokeWidth} highlightViewTag={highlightViewTag} highlightViewTagParams={nativeHighlightViewTagParams} minimumRectSize={minimumRectSize} innerPadding={innerPadding} testID={props.testID} accessible={props.accessible} />
|
|
45
45
|
{children}
|
|
46
46
|
</Modal>;
|
|
47
47
|
};
|
|
@@ -19,7 +19,7 @@ export type HighlighterOverlayViewProps = {
|
|
|
19
19
|
onRequestClose?: () => void;
|
|
20
20
|
highlightFrame?: HighlightFrameType;
|
|
21
21
|
style?: ViewStyle;
|
|
22
|
-
highlightViewTag?: number
|
|
22
|
+
highlightViewTag?: number;
|
|
23
23
|
children?: JSX.Element[] | JSX.Element;
|
|
24
24
|
highlightViewTagParams?: HighlightViewTagParams;
|
|
25
25
|
minimumRectSize?: Pick<HighlightFrameType, 'width' | 'height'>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
1
|
+
import { type ViewProps } from 'react-native';
|
|
3
2
|
import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
3
|
export interface NativeProps extends ViewProps {
|
|
5
4
|
/**
|
|
@@ -54,5 +53,5 @@ export interface NativeProps extends ViewProps {
|
|
|
54
53
|
*/
|
|
55
54
|
usesBottomTabs?: WithDefault<boolean, false>;
|
|
56
55
|
}
|
|
57
|
-
declare const
|
|
58
|
-
export default
|
|
56
|
+
declare const KeyboardTrackingViewNativeComponent: import("react-native").HostComponent<NativeProps>;
|
|
57
|
+
export default KeyboardTrackingViewNativeComponent;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
// import type {ViewProps} from 'react-native';
|
|
2
|
+
import { requireNativeComponent } from 'react-native';
|
|
3
|
+
|
|
4
|
+
// import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
5
|
+
|
|
6
|
+
// export default codegenNativeComponent<NativeProps>('KeyboardTrackingViewTemp');
|
|
7
|
+
|
|
8
|
+
const KeyboardTrackingViewNativeComponent = requireNativeComponent('KeyboardTrackingViewTemp');
|
|
9
|
+
export default KeyboardTrackingViewNativeComponent;
|
package/package.json
CHANGED