diff --git a/lib/.npmignore b/lib/.npmignore index b839865a69..edbbb01dff 100644 --- a/lib/.npmignore +++ b/lib/.npmignore @@ -5,3 +5,6 @@ *.d.js # include the .d.ts files !*.d.ts +# ignore the .js files in the specs folder and include the .ts files and include the .ts files +specs/**/*.js +!specs/**/*.ts diff --git a/lib/components/HighlighterOverlayView/index.tsx b/lib/components/HighlighterOverlayView/index.tsx index 8d2dd2495b..b656fd9be4 100644 --- a/lib/components/HighlighterOverlayView/index.tsx +++ b/lib/components/HighlighterOverlayView/index.tsx @@ -3,7 +3,7 @@ import {processColor, StyleSheet, Modal, ViewStyle} from 'react-native'; // Import the Codegen specification for New Architecture import HighlighterViewNativeComponent, { HighlightViewTagParams as NativeHighlightViewTagParams -} from './HighlighterViewNativeComponent'; +} from '../../specs/HighlighterViewNativeComponent'; const DefaultOverlayColor = 'rgba(0, 0, 0, 0.5)'; diff --git a/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.tsx b/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.tsx index e32b3275ae..e58c520505 100644 --- a/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.tsx +++ b/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingView.ios.tsx @@ -1,7 +1,7 @@ import React, {PureComponent} from 'react'; import ReactNative, {NativeModules} from 'react-native'; // Import the Codegen specification for New Architecture -import KeyboardTrackingViewNativeComponent from './KeyboardTrackingViewNativeComponent'; +import KeyboardTrackingViewNativeComponent from '../../../specs/KeyboardTrackingViewNativeComponent'; import {KeyboardTrackingViewProps} from './index'; const KeyboardTrackingViewTempManager = NativeModules.KeyboardTrackingViewTempManager; diff --git a/lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.ts b/lib/specs/HighlighterViewNativeComponent.ts similarity index 72% rename from lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.ts rename to lib/specs/HighlighterViewNativeComponent.ts index b0951ef38d..d790279c3b 100644 --- a/lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.ts +++ b/lib/specs/HighlighterViewNativeComponent.ts @@ -1,11 +1,7 @@ -// import type {ViewProps} from 'react-native'; -import {requireNativeComponent, type ViewProps} from 'react-native'; -import type { - Float, - Int32, - WithDefault -} from 'react-native/Libraries/Types/CodegenTypes'; -// import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; +import type {ViewProps} from 'react-native'; +// import {requireNativeComponent, type ViewProps} from 'react-native'; +import type {Float, Int32, WithDefault} from 'react-native/Libraries/Types/CodegenTypes'; +import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; export interface HighlightFrame { x: Float; @@ -75,8 +71,8 @@ export interface NativeProps extends ViewProps { innerPadding?: WithDefault; } -// export default codegenNativeComponent('HighlighterView'); +export default codegenNativeComponent('HighlighterView'); -const HighlighterViewNativeComponent = requireNativeComponent('HighlighterView'); +// const HighlighterViewNativeComponent = requireNativeComponent('HighlighterView'); -export default HighlighterViewNativeComponent; +// export default HighlighterViewNativeComponent; diff --git a/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.ts b/lib/specs/KeyboardTrackingViewNativeComponent.ts similarity index 77% rename from lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.ts rename to lib/specs/KeyboardTrackingViewNativeComponent.ts index 9e78056c1d..b5d4b988db 100644 --- a/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.ts +++ b/lib/specs/KeyboardTrackingViewNativeComponent.ts @@ -1,7 +1,7 @@ -// import type {ViewProps} from 'react-native'; -import {requireNativeComponent, type ViewProps} from 'react-native'; +import type {ViewProps} from 'react-native'; +// import {requireNativeComponent, type ViewProps} from 'react-native'; import type {Int32, WithDefault} from 'react-native/Libraries/Types/CodegenTypes'; -// import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; +import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; export interface NativeProps extends ViewProps { /** @@ -67,8 +67,8 @@ export interface NativeProps extends ViewProps { usesBottomTabs?: WithDefault; } -// export default codegenNativeComponent('KeyboardTrackingViewTemp'); +export default codegenNativeComponent('KeyboardTrackingViewTemp'); -const KeyboardTrackingViewNativeComponent = requireNativeComponent('KeyboardTrackingViewTemp'); +// const KeyboardTrackingViewNativeComponent = requireNativeComponent('KeyboardTrackingViewTemp'); -export default KeyboardTrackingViewNativeComponent; +// export default KeyboardTrackingViewNativeComponent; diff --git a/package.json b/package.json index a11abd7925..ebc0feef81 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "react-native-redash": "^12.0.3", "semver": "^5.5.0", "tinycolor2": "^1.4.2", - "uilib-native": "5.0.0-snapshot.7207", + "uilib-native": "5.0.0-snapshot.7212", "url-parse": "^1.2.0", "wix-react-native-text-size": "1.0.9" }, diff --git a/yarn.lock b/yarn.lock index d7188591c0..bd4ce760d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10928,7 +10928,7 @@ __metadata: shell-utils: ^1.0.10 tinycolor2: ^1.4.2 typescript: 5.0.4 - uilib-native: 5.0.0-snapshot.7207 + uilib-native: 5.0.0-snapshot.7212 url-parse: ^1.2.0 wix-react-native-text-size: 1.0.9 peerDependencies: @@ -12560,16 +12560,16 @@ __metadata: languageName: node linkType: hard -"uilib-native@npm:5.0.0-snapshot.7207": - version: 5.0.0-snapshot.7207 - resolution: "uilib-native@npm:5.0.0-snapshot.7207" +"uilib-native@npm:5.0.0-snapshot.7212": + version: 5.0.0-snapshot.7212 + resolution: "uilib-native@npm:5.0.0-snapshot.7212" dependencies: lodash: ^4.17.21 prop-types: ^15.5.10 peerDependencies: react: ">=17.0.1" react-native: ">=0.64.1" - checksum: 3246a839f411acc4b05507eb3f1c1eea350b38268c8167e68fe6ca123985a53b848578df33bf738aee230cd2ef535bc41bd975d1e1f848e7263ff59ee7ae04e9 + checksum: f293839cebb6b8dca255de9b02dcf27f36892aa8d2c97ae1445c4e8506d43db03cd95758ae7685f642fce051bff016667a91632083d48ac6581dc101691f3365 languageName: node linkType: hard