diff --git a/src/fabric/FullWindowOverlay.js b/src/fabric/FullWindowOverlay.js new file mode 100644 index 0000000000..5ab21d4bd0 --- /dev/null +++ b/src/fabric/FullWindowOverlay.js @@ -0,0 +1,13 @@ +import React from 'react'; +import FullWindowOverlayNativeComponent from './FullWindowOverlayNativeComponent'; + +function FullWindowOverlay(props) { + return ( + + ); +} + +export default FullWindowOverlay; diff --git a/src/fabric/FullWindowOverlayNativeComponent.js b/src/fabric/FullWindowOverlayNativeComponent.js new file mode 100644 index 0000000000..a63c57a59d --- /dev/null +++ b/src/fabric/FullWindowOverlayNativeComponent.js @@ -0,0 +1,19 @@ +/** + * @flow strict-local + * @format + */ +/* eslint-disable */ +import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; +import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes'; +import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes'; + +type NativeProps = $ReadOnly<{| + ...ViewProps, +|}>; + +type ComponentType = HostComponent; + +export default (codegenNativeComponent( + 'RNSFullWindowOverlay', + {} +): ComponentType); diff --git a/src/fabric/index.js b/src/fabric/index.js index e57b73da36..ffb50028dd 100644 --- a/src/fabric/index.js +++ b/src/fabric/index.js @@ -5,6 +5,7 @@ import ScreenStack from './ScreenStack'; import SearchBar from './SearchBar'; import ScreenContainer from './ScreenContainer'; import ScreenNavigationContainer from './ScreenNavigationContainer'; +import FullWindowOverlay from './FullWindowOverlay'; export { Screen, @@ -14,4 +15,5 @@ export { SearchBar, ScreenContainer, ScreenNavigationContainer, + FullWindowOverlay, }; diff --git a/src/index.native.tsx b/src/index.native.tsx index 629186f48f..fcaa9e4bc1 100644 --- a/src/index.native.tsx +++ b/src/index.native.tsx @@ -152,7 +152,9 @@ const ScreensNativeModules = { get NativeFullWindowOverlay() { NativeFullWindowOverlay = - NativeFullWindowOverlay || requireNativeComponent('RNSFullWindowOverlay'); + NativeFullWindowOverlay || + FabricComponents.FullWindowOverlay || + requireNativeComponent('RNSFullWindowOverlay'); return NativeFullWindowOverlay; }, };