uilib-native 5.0.0-snapshot.7212 → 5.0.0-snapshot.7227

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.
@@ -0,0 +1,2 @@
1
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
+ export default codegenNativeComponent('HighlighterView');
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { processColor, StyleSheet, Modal } from 'react-native';
3
3
  // Import the Codegen specification for New Architecture
4
- import HighlighterViewNativeComponent from "../../specs/HighlighterViewNativeComponent";
4
+ import HighlighterViewNativeComponent from "./HighlighterViewNativeComponent";
5
5
  const DefaultOverlayColor = 'rgba(0, 0, 0, 0.5)';
6
6
  const HighlighterOverlayView = props => {
7
7
  const {
@@ -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 | null;
23
23
  children?: JSX.Element[] | JSX.Element;
24
24
  highlightViewTagParams?: HighlightViewTagParams;
25
25
  minimumRectSize?: Pick<HighlightFrameType, 'width' | 'height'>;
@@ -1,7 +1,7 @@
1
1
  import React, { PureComponent } from 'react';
2
2
  import ReactNative, { NativeModules } from 'react-native';
3
3
  // Import the Codegen specification for New Architecture
4
- import KeyboardTrackingViewNativeComponent from "../../../specs/KeyboardTrackingViewNativeComponent";
4
+ import KeyboardTrackingViewNativeComponent from "./KeyboardTrackingViewNativeComponent";
5
5
  const KeyboardTrackingViewTempManager = NativeModules.KeyboardTrackingViewTempManager;
6
6
 
7
7
  /**
@@ -0,0 +1,2 @@
1
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
+ export default codegenNativeComponent('KeyboardTrackingViewTemp');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilib-native",
3
- "version": "5.0.0-snapshot.7212",
3
+ "version": "5.0.0-snapshot.7227",
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",
@@ -1,78 +0,0 @@
1
- import type {ViewProps} from 'react-native';
2
- // import {requireNativeComponent, type ViewProps} from 'react-native';
3
- import type {Float, Int32, WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
-
6
- export interface HighlightFrame {
7
- x: Float;
8
- y: Float;
9
- width: Float;
10
- height: Float;
11
- }
12
-
13
- export interface MinimumRectSize {
14
- width: Float;
15
- height: Float;
16
- }
17
-
18
- export interface HighlightViewTagParams {
19
- paddingLeft?: WithDefault<Float, 0>;
20
- paddingTop?: WithDefault<Float, 0>;
21
- paddingRight?: WithDefault<Float, 0>;
22
- paddingBottom?: WithDefault<Float, 0>;
23
- offsetX?: WithDefault<Float, 0>;
24
- offsetY?: WithDefault<Float, 0>;
25
- }
26
-
27
- export interface NativeProps extends ViewProps {
28
- /**
29
- * The frame to highlight with x, y, width, height coordinates
30
- */
31
- highlightFrame?: HighlightFrame;
32
-
33
- /**
34
- * The overlay color (processed color int for Android)
35
- */
36
- overlayColor?: WithDefault<Int32, 0>;
37
-
38
- /**
39
- * The border radius for the highlighted area
40
- */
41
- borderRadius?: WithDefault<Float, 0>;
42
-
43
- /**
44
- * The stroke color (processed color int for Android)
45
- */
46
- strokeColor?: WithDefault<Int32, 0>;
47
-
48
- /**
49
- * The stroke width
50
- */
51
- strokeWidth?: WithDefault<Float, 0>;
52
-
53
- /**
54
- * The React tag of the view to highlight
55
- */
56
- highlightViewTag?: Int32;
57
-
58
- /**
59
- * Parameters for view-based highlighting including padding and offset
60
- */
61
- highlightViewTagParams?: HighlightViewTagParams;
62
-
63
- /**
64
- * Minimum rectangle size for the highlight area
65
- */
66
- minimumRectSize?: MinimumRectSize;
67
-
68
- /**
69
- * Inner padding for the highlight area
70
- */
71
- innerPadding?: WithDefault<Float, 0>;
72
- }
73
-
74
- export default codegenNativeComponent<NativeProps>('HighlighterView');
75
-
76
- // const HighlighterViewNativeComponent = requireNativeComponent<NativeProps>('HighlighterView');
77
-
78
- // export default HighlighterViewNativeComponent;
@@ -1,74 +0,0 @@
1
- import type {ViewProps} from 'react-native';
2
- // import {requireNativeComponent, type ViewProps} from 'react-native';
3
- import type {Int32, WithDefault} from 'react-native/Libraries/Types/CodegenTypes';
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
-
6
- export interface NativeProps extends ViewProps {
7
- /**
8
- * Enables tracking of the keyboard when it's dismissed interactively (false by default).
9
- */
10
- trackInteractive?: WithDefault<boolean, false>;
11
-
12
- /**
13
- * iOS only.
14
- * Show the keyboard on a negative scroll
15
- */
16
- revealKeyboardInteractive?: WithDefault<boolean, false>;
17
-
18
- /**
19
- * iOS only.
20
- * Set to false to turn off inset management and manage it yourself
21
- */
22
- manageScrollView?: WithDefault<boolean, true>;
23
-
24
- /**
25
- * iOS only.
26
- * Set to true manageScrollView is set to true and still does not work
27
- */
28
- requiresSameParentToManageScrollView?: WithDefault<boolean, false>;
29
-
30
- /**
31
- * iOS only.
32
- * Allow hitting sub-views that are placed beyond the view bounds
33
- */
34
- allowHitsOutsideBounds?: WithDefault<boolean, false>;
35
-
36
- /**
37
- * Should the scrollView scroll to the focused input
38
- */
39
- scrollToFocusedInput?: WithDefault<boolean, false>;
40
-
41
- /**
42
- * iOS only.
43
- * The scrolling behavior (NONE | SCROLL_TO_BOTTOM_INVERTED_ONLY | FIXED_OFFSET)
44
- */
45
- scrollBehavior?: WithDefault<Int32, 0>;
46
-
47
- /**
48
- * iOS only.
49
- * Add a SafeArea view beneath the KeyboardAccessoryView
50
- */
51
- addBottomView?: WithDefault<boolean, false>;
52
-
53
- /**
54
- * iOS only.
55
- * The bottom view's color
56
- */
57
- bottomViewColor?: string;
58
-
59
- /**
60
- * Allow control safe area
61
- */
62
- useSafeArea?: WithDefault<boolean, false>;
63
-
64
- /**
65
- * Whether or not to include bottom tab bar inset
66
- */
67
- usesBottomTabs?: WithDefault<boolean, false>;
68
- }
69
-
70
- export default codegenNativeComponent<NativeProps>('KeyboardTrackingViewTemp');
71
-
72
- // const KeyboardTrackingViewNativeComponent = requireNativeComponent<NativeProps>('KeyboardTrackingViewTemp');
73
-
74
- // export default KeyboardTrackingViewNativeComponent;