diff --git a/node_modules/@react-navigation/native-stack/src/views/NativeStackView.native.tsx b/node_modules/@react-navigation/native-stack/src/views/NativeStackView.native.tsx index 774aafc..c57d4f7 100644 --- a/node_modules/@react-navigation/native-stack/src/views/NativeStackView.native.tsx +++ b/node_modules/@react-navigation/native-stack/src/views/NativeStackView.native.tsx @@ -3,7 +3,6 @@ import { getHeaderTitle, HeaderHeightContext, HeaderShownContext, - SafeAreaProviderCompat, } from '@react-navigation/elements'; import { NavigationContext, @@ -75,7 +74,10 @@ const MaybeNestedStack = ({ const content = ( + frame.height; - const topInset = isModal || (isIPhone && isLandscape) ? 0 : insets.top; + const topInset = isModal || (isIPhone && isLandscape) ? 0 : insets.top; const isParentHeaderShown = React.useContext(HeaderShownContext); const parentHeaderHeight = React.useContext(HeaderHeightContext); - const defaultHeaderHeight = getDefaultHeaderHeight(frame, isModal, topInset); + const defaultHeaderHeight = getDefaultHeaderHeight(frame, isModal, topInset); const [customHeaderHeight, setCustomHeaderHeight] = React.useState(defaultHeaderHeight); @@ -287,7 +292,10 @@ function NativeStackViewInner({ state, navigation, descriptors }: Props) { }, [dismissedRouteName]); return ( - + {state.routes.map((route, index) => { const descriptor = descriptors[route.key]; const previousKey = state.routes[index - 1]?.key; @@ -340,9 +348,7 @@ function NativeStackViewInner({ state, navigation, descriptors }: Props) { export default function NativeStackView(props: Props) { return ( - - - + ); }