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

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/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.7211",
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
  }
@@ -1,4 +1,5 @@
1
- import { type ViewProps } from 'react-native';
1
+ /// <reference types="react-native/types/modules/codegen" />
2
+ import type { ViewProps } from 'react-native';
2
3
  import type { Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
4
  export interface HighlightFrame {
4
5
  x: Float;
@@ -56,5 +57,5 @@ export interface NativeProps extends ViewProps {
56
57
  */
57
58
  innerPadding?: WithDefault<Float, 0>;
58
59
  }
59
- declare const HighlighterViewNativeComponent: import("react-native").HostComponent<NativeProps>;
60
- export default HighlighterViewNativeComponent;
60
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
61
+ export default _default;
@@ -0,0 +1,8 @@
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,4 +1,5 @@
1
- import { type ViewProps } from 'react-native';
1
+ /// <reference types="react-native/types/modules/codegen" />
2
+ import type { ViewProps } from 'react-native';
2
3
  import type { Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
4
  export interface NativeProps extends ViewProps {
4
5
  /**
@@ -53,5 +54,5 @@ export interface NativeProps extends ViewProps {
53
54
  */
54
55
  usesBottomTabs?: WithDefault<boolean, false>;
55
56
  }
56
- declare const KeyboardTrackingViewNativeComponent: import("react-native").HostComponent<NativeProps>;
57
- export default KeyboardTrackingViewNativeComponent;
57
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
58
+ export default _default;
@@ -0,0 +1,8 @@
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;
@@ -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,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;