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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilib-native",
3
- "version": "5.0.0-snapshot.7211",
3
+ "version": "5.0.0-snapshot.7212",
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",
@@ -19,19 +19,5 @@
19
19
  "peerDependencies": {
20
20
  "react": ">=17.0.1",
21
21
  "react-native": ">=0.64.1"
22
- },
23
- "codegenConfig": {
24
- "name": "ReactNativeUiLibSpec",
25
- "type": "modules",
26
- "jsSrcsDir": "specs",
27
- "android": {
28
- "javaPackageName": "com.wix.reactnativeuilib"
29
- },
30
- "ios": {
31
- "componentProvider": {
32
- "HighlighterView": "HighlighterView",
33
- "KeyboardTrackingViewTemp": "KeyboardTrackingViewTemp"
34
- }
35
- }
36
22
  }
37
23
  }
@@ -0,0 +1,78 @@
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;
@@ -0,0 +1,74 @@
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;
@@ -1,8 +0,0 @@
1
- // import {requireNativeComponent, type ViewProps} from 'react-native';
2
-
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
4
- export default codegenNativeComponent('HighlighterView');
5
-
6
- // const HighlighterViewNativeComponent = requireNativeComponent<NativeProps>('HighlighterView');
7
-
8
- // export default HighlighterViewNativeComponent;
@@ -1,8 +0,0 @@
1
- // import {requireNativeComponent, type ViewProps} from 'react-native';
2
-
3
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
4
- export default codegenNativeComponent('KeyboardTrackingViewTemp');
5
-
6
- // const KeyboardTrackingViewNativeComponent = requireNativeComponent<NativeProps>('KeyboardTrackingViewTemp');
7
-
8
- // export default KeyboardTrackingViewNativeComponent;