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.
@@ -1,5 +1,4 @@
1
- /// <reference types="react-native/types/modules/codegen" />
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 _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
61
- export default _default;
59
+ declare const HighlighterViewNativeComponent: import("react-native").HostComponent<NativeProps>;
60
+ export default HighlighterViewNativeComponent;
@@ -1,2 +1,9 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
- export default codegenNativeComponent('HighlighterView');
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 | null;
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 || undefined} highlightViewTagParams={nativeHighlightViewTagParams} minimumRectSize={minimumRectSize} innerPadding={innerPadding} testID={props.testID} accessible={props.accessible} />
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 | null;
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
- /// <reference types="react-native/types/modules/codegen" />
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 _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
58
- export default _default;
56
+ declare const KeyboardTrackingViewNativeComponent: import("react-native").HostComponent<NativeProps>;
57
+ export default KeyboardTrackingViewNativeComponent;
@@ -1,2 +1,9 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
- export default codegenNativeComponent('KeyboardTrackingViewTemp');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilib-native",
3
- "version": "5.0.0-snapshot.7192",
3
+ "version": "5.0.0-snapshot.7207",
4
4
  "homepage": "https://github.com/wix/react-native-ui-lib",
5
5
  "description": "uilib native components (separated from js components)",
6
6
  "main": "components/index",