diff --git a/src/AppContainerWrapper.tsx b/src/LayoutInspectorProvider.tsx similarity index 88% rename from src/AppContainerWrapper.tsx rename to src/LayoutInspectorProvider.tsx index dbedb5a..f115046 100644 --- a/src/AppContainerWrapper.tsx +++ b/src/LayoutInspectorProvider.tsx @@ -6,7 +6,9 @@ import { RootTagContext } from 'react-native/Libraries/ReactNative/RootTag'; // Wrap the children in AppContainer so the React Native inspector works // within the modal. See https://github.com/facebook/react-native/blob/v0.81.4/packages/react-native/Libraries/Modal/Modal.js#L308 // for the inspiration within the RN Modal component. -export const AppContainerWrapper: FC = ({ children }) => { +export const LayoutInspectorProvider: FC = ({ + children, +}) => { const rootTag = useContext(RootTagContext); // The inspector is only needed in development diff --git a/src/ModalView.tsx b/src/ModalView.tsx index 36ce6ed..f7ebe92 100644 --- a/src/ModalView.tsx +++ b/src/ModalView.tsx @@ -2,7 +2,7 @@ import { FC } from 'react'; import { Platform, Pressable, StatusBar, StyleSheet, View } from 'react-native'; -import { AppContainerWrapper } from './AppContainerWrapper'; +import { LayoutInspectorProvider } from './LayoutInspectorProvider'; import { ScrollContextResetter } from './ScrollContextResetter'; import { GestureHandlerRootView } from './integrations/GestureHandlerRootView'; import RNTModalView from './newarch/NativeRNTModalView'; @@ -38,8 +38,8 @@ export const ModalView: FC = ({ onPressBackAndroid={() => onRequestDismiss?.(DismissalSource.BackButton)} animationType={animationType} > - - + + {isIOS && statusBar && !disableDefaultStatusBarIOS ? ( ) : null} @@ -69,8 +69,8 @@ export const ModalView: FC = ({ - - + + ); };