diff --git a/lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.ts b/lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.ts index bc6f15a75c..b0951ef38d 100644 --- a/lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.ts +++ b/lib/components/HighlighterOverlayView/HighlighterViewNativeComponent.ts @@ -1,10 +1,11 @@ -import type {ViewProps} from 'react-native'; +// 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 codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; export interface HighlightFrame { x: Float; @@ -32,46 +33,50 @@ export interface NativeProps extends ViewProps { * The frame to highlight with x, y, width, height coordinates */ highlightFrame?: HighlightFrame; - + /** * The overlay color (processed color int for Android) */ overlayColor?: WithDefault; - + /** * The border radius for the highlighted area */ borderRadius?: WithDefault; - + /** * The stroke color (processed color int for Android) */ strokeColor?: WithDefault; - + /** * The stroke width */ strokeWidth?: WithDefault; - + /** * The React tag of the view to highlight */ highlightViewTag?: Int32; - + /** * Parameters for view-based highlighting including padding and offset */ highlightViewTagParams?: HighlightViewTagParams; - + /** * Minimum rectangle size for the highlight area */ minimumRectSize?: MinimumRectSize; - + /** * Inner padding for the highlight area */ innerPadding?: WithDefault; } -export default codegenNativeComponent('HighlighterView'); +// export default codegenNativeComponent('HighlighterView'); + +const HighlighterViewNativeComponent = requireNativeComponent('HighlighterView'); + +export default HighlighterViewNativeComponent; diff --git a/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.ts b/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.ts index 0c602c6897..9e78056c1d 100644 --- a/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.ts +++ b/lib/components/Keyboard/KeyboardTrackingView/KeyboardTrackingViewNativeComponent.ts @@ -1,72 +1,74 @@ -import type {ViewProps} from 'react-native'; -import type { - 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 {Int32, WithDefault} from 'react-native/Libraries/Types/CodegenTypes'; +// import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; export interface NativeProps extends ViewProps { /** * Enables tracking of the keyboard when it's dismissed interactively (false by default). */ trackInteractive?: WithDefault; - + /** * iOS only. * Show the keyboard on a negative scroll */ revealKeyboardInteractive?: WithDefault; - + /** * iOS only. * Set to false to turn off inset management and manage it yourself */ manageScrollView?: WithDefault; - + /** * iOS only. * Set to true manageScrollView is set to true and still does not work */ requiresSameParentToManageScrollView?: WithDefault; - + /** * iOS only. * Allow hitting sub-views that are placed beyond the view bounds */ allowHitsOutsideBounds?: WithDefault; - + /** * Should the scrollView scroll to the focused input */ scrollToFocusedInput?: WithDefault; - + /** * iOS only. * The scrolling behavior (NONE | SCROLL_TO_BOTTOM_INVERTED_ONLY | FIXED_OFFSET) */ scrollBehavior?: WithDefault; - + /** * iOS only. * Add a SafeArea view beneath the KeyboardAccessoryView */ addBottomView?: WithDefault; - + /** * iOS only. * The bottom view's color */ bottomViewColor?: string; - + /** * Allow control safe area */ useSafeArea?: WithDefault; - + /** * Whether or not to include bottom tab bar inset */ usesBottomTabs?: WithDefault; } -export default codegenNativeComponent('KeyboardTrackingViewTemp'); +// export default codegenNativeComponent('KeyboardTrackingViewTemp'); + +const KeyboardTrackingViewNativeComponent = requireNativeComponent('KeyboardTrackingViewTemp'); + +export default KeyboardTrackingViewNativeComponent; diff --git a/package.json b/package.json index b019c3f127..a11abd7925 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.7204", + "uilib-native": "5.0.0-snapshot.7207", "url-parse": "^1.2.0", "wix-react-native-text-size": "1.0.9" }, diff --git a/yarn.lock b/yarn.lock index c0043965e6..d7188591c0 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.7204 + uilib-native: 5.0.0-snapshot.7207 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.7204": - version: 5.0.0-snapshot.7204 - resolution: "uilib-native@npm:5.0.0-snapshot.7204" +"uilib-native@npm:5.0.0-snapshot.7207": + version: 5.0.0-snapshot.7207 + resolution: "uilib-native@npm:5.0.0-snapshot.7207" dependencies: lodash: ^4.17.21 prop-types: ^15.5.10 peerDependencies: react: ">=17.0.1" react-native: ">=0.64.1" - checksum: 9f922ec1e91d2f1609930e932b182ea48b03b07c2c79ef61569a1277be4120d6434782e91874a058998b5703dff53a94c2a504142066812489c915a2a8c24820 + checksum: 3246a839f411acc4b05507eb3f1c1eea350b38268c8167e68fe6ca123985a53b848578df33bf738aee230cd2ef535bc41bd975d1e1f848e7263ff59ee7ae04e9 languageName: node linkType: hard