react-native-ui-lib 7.44.0-snapshot.7207 → 7.44.0-snapshot.7210

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,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 "./HighlighterViewNativeComponent";
4
+ import HighlighterViewNativeComponent from "../../specs/HighlighterViewNativeComponent";
5
5
  const DefaultOverlayColor = 'rgba(0, 0, 0, 0.5)';
6
6
  const HighlighterOverlayView = props => {
7
7
  const {
@@ -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 "./KeyboardTrackingViewNativeComponent";
4
+ import KeyboardTrackingViewNativeComponent from "../../../specs/KeyboardTrackingViewNativeComponent";
5
5
  const KeyboardTrackingViewTempManager = NativeModules.KeyboardTrackingViewTempManager;
6
6
 
7
7
  /**
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uilib-native",
3
- "version": "5.0.0-snapshot.7207",
3
+ "version": "5.0.0-snapshot.7210",
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,5 +19,19 @@
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
+ }
22
36
  }
23
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "7.44.0-snapshot.7207",
3
+ "version": "7.44.0-snapshot.7210",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -56,7 +56,7 @@
56
56
  "react-native-redash": "^12.0.3",
57
57
  "semver": "^5.5.0",
58
58
  "tinycolor2": "^1.4.2",
59
- "uilib-native": "5.0.0-snapshot.7204",
59
+ "uilib-native": "5.0.0-snapshot.7207",
60
60
  "url-parse": "^1.2.0",
61
61
  "wix-react-native-text-size": "1.0.9"
62
62
  },
@@ -1,60 +0,0 @@
1
- import { type ViewProps } from 'react-native';
2
- import type { Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
- export interface HighlightFrame {
4
- x: Float;
5
- y: Float;
6
- width: Float;
7
- height: Float;
8
- }
9
- export interface MinimumRectSize {
10
- width: Float;
11
- height: Float;
12
- }
13
- export interface HighlightViewTagParams {
14
- paddingLeft?: WithDefault<Float, 0>;
15
- paddingTop?: WithDefault<Float, 0>;
16
- paddingRight?: WithDefault<Float, 0>;
17
- paddingBottom?: WithDefault<Float, 0>;
18
- offsetX?: WithDefault<Float, 0>;
19
- offsetY?: WithDefault<Float, 0>;
20
- }
21
- export interface NativeProps extends ViewProps {
22
- /**
23
- * The frame to highlight with x, y, width, height coordinates
24
- */
25
- highlightFrame?: HighlightFrame;
26
- /**
27
- * The overlay color (processed color int for Android)
28
- */
29
- overlayColor?: WithDefault<Int32, 0>;
30
- /**
31
- * The border radius for the highlighted area
32
- */
33
- borderRadius?: WithDefault<Float, 0>;
34
- /**
35
- * The stroke color (processed color int for Android)
36
- */
37
- strokeColor?: WithDefault<Int32, 0>;
38
- /**
39
- * The stroke width
40
- */
41
- strokeWidth?: WithDefault<Float, 0>;
42
- /**
43
- * The React tag of the view to highlight
44
- */
45
- highlightViewTag?: Int32;
46
- /**
47
- * Parameters for view-based highlighting including padding and offset
48
- */
49
- highlightViewTagParams?: HighlightViewTagParams;
50
- /**
51
- * Minimum rectangle size for the highlight area
52
- */
53
- minimumRectSize?: MinimumRectSize;
54
- /**
55
- * Inner padding for the highlight area
56
- */
57
- innerPadding?: WithDefault<Float, 0>;
58
- }
59
- declare const HighlighterViewNativeComponent: import("react-native").HostComponent<NativeProps>;
60
- export default HighlighterViewNativeComponent;
@@ -1,9 +0,0 @@
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;
@@ -1,57 +0,0 @@
1
- import { type ViewProps } from 'react-native';
2
- import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
- export interface NativeProps extends ViewProps {
4
- /**
5
- * Enables tracking of the keyboard when it's dismissed interactively (false by default).
6
- */
7
- trackInteractive?: WithDefault<boolean, false>;
8
- /**
9
- * iOS only.
10
- * Show the keyboard on a negative scroll
11
- */
12
- revealKeyboardInteractive?: WithDefault<boolean, false>;
13
- /**
14
- * iOS only.
15
- * Set to false to turn off inset management and manage it yourself
16
- */
17
- manageScrollView?: WithDefault<boolean, true>;
18
- /**
19
- * iOS only.
20
- * Set to true manageScrollView is set to true and still does not work
21
- */
22
- requiresSameParentToManageScrollView?: WithDefault<boolean, false>;
23
- /**
24
- * iOS only.
25
- * Allow hitting sub-views that are placed beyond the view bounds
26
- */
27
- allowHitsOutsideBounds?: WithDefault<boolean, false>;
28
- /**
29
- * Should the scrollView scroll to the focused input
30
- */
31
- scrollToFocusedInput?: WithDefault<boolean, false>;
32
- /**
33
- * iOS only.
34
- * The scrolling behavior (NONE | SCROLL_TO_BOTTOM_INVERTED_ONLY | FIXED_OFFSET)
35
- */
36
- scrollBehavior?: WithDefault<Int32, 0>;
37
- /**
38
- * iOS only.
39
- * Add a SafeArea view beneath the KeyboardAccessoryView
40
- */
41
- addBottomView?: WithDefault<boolean, false>;
42
- /**
43
- * iOS only.
44
- * The bottom view's color
45
- */
46
- bottomViewColor?: string;
47
- /**
48
- * Allow control safe area
49
- */
50
- useSafeArea?: WithDefault<boolean, false>;
51
- /**
52
- * Whether or not to include bottom tab bar inset
53
- */
54
- usesBottomTabs?: WithDefault<boolean, false>;
55
- }
56
- declare const KeyboardTrackingViewNativeComponent: import("react-native").HostComponent<NativeProps>;
57
- export default KeyboardTrackingViewNativeComponent;
@@ -1,9 +0,0 @@
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;