diff --git a/packages/react-native/Libraries/ReactNative/renderApplication.js b/packages/react-native/Libraries/ReactNative/renderApplication.js index e980b004acf..613dfc52d8c 100644 --- a/packages/react-native/Libraries/ReactNative/renderApplication.js +++ b/packages/react-native/Libraries/ReactNative/renderApplication.js @@ -22,7 +22,7 @@ import * as React from 'react'; // require BackHandler so it sets the default handler that exits the app if no listeners respond import '../Utilities/BackHandler'; -type OffscreenType = React.AbstractComponent<{ +type ActivityType = React.AbstractComponent<{ mode: 'visible' | 'hidden', children: React.Node, }>; @@ -73,13 +73,13 @@ export default function renderApplication( if (useOffscreen && displayMode != null) { // $FlowFixMe[incompatible-type] // $FlowFixMe[prop-missing] - const Offscreen: OffscreenType = React.unstable_Offscreen; + const Activity: ActivityType = React.unstable_Activity; renderable = ( - {renderable} - + ); }