diff --git a/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js b/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/bottom-tabs_v5.x.x.js @@ -1369,8 +1369,6 @@ declare export type StackOptions = $Partial<{| +title: string, - +header: StackHeaderProps => React$Node, - +headerShown: boolean, +cardShadowEnabled: boolean, +cardOverlayEnabled: boolean, +cardOverlay: {| style: ViewStyleProp |} => React$Node, @@ -1386,6 +1384,9 @@ // Transition ...TransitionPreset, // Header + +header: StackHeaderProps => React$Node, + +headerShown: boolean, + +headerMode: 'float' | 'screen', +headerTitle: string | (StackHeaderTitleInputProps => React$Node), +headerTitleAlign: 'left' | 'center', +headerTitleStyle: AnimatedTextStyleProp, @@ -1471,7 +1472,6 @@ */ declare type StackNavigationConfig = {| - +headerMode?: 'float' | 'screen' | 'none', +detachInactiveScreens?: boolean, |}; diff --git a/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js b/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/devtools_v5.x.x.js @@ -1369,8 +1369,6 @@ declare export type StackOptions = $Partial<{| +title: string, - +header: StackHeaderProps => React$Node, - +headerShown: boolean, +cardShadowEnabled: boolean, +cardOverlayEnabled: boolean, +cardOverlay: {| style: ViewStyleProp |} => React$Node, @@ -1386,6 +1384,9 @@ // Transition ...TransitionPreset, // Header + +header: StackHeaderProps => React$Node, + +headerShown: boolean, + +headerMode: 'float' | 'screen', +headerTitle: string | (StackHeaderTitleInputProps => React$Node), +headerTitleAlign: 'left' | 'center', +headerTitleStyle: AnimatedTextStyleProp, @@ -1471,7 +1472,6 @@ */ declare type StackNavigationConfig = {| - +headerMode?: 'float' | 'screen' | 'none', +detachInactiveScreens?: boolean, |}; diff --git a/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js b/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/material-top-tabs_v5.x.x.js @@ -1369,8 +1369,6 @@ declare export type StackOptions = $Partial<{| +title: string, - +header: StackHeaderProps => React$Node, - +headerShown: boolean, +cardShadowEnabled: boolean, +cardOverlayEnabled: boolean, +cardOverlay: {| style: ViewStyleProp |} => React$Node, @@ -1386,6 +1384,9 @@ // Transition ...TransitionPreset, // Header + +header: StackHeaderProps => React$Node, + +headerShown: boolean, + +headerMode: 'float' | 'screen', +headerTitle: string | (StackHeaderTitleInputProps => React$Node), +headerTitleAlign: 'left' | 'center', +headerTitleStyle: AnimatedTextStyleProp, @@ -1471,7 +1472,6 @@ */ declare type StackNavigationConfig = {| - +headerMode?: 'float' | 'screen' | 'none', +detachInactiveScreens?: boolean, |}; diff --git a/native/flow-typed/npm/@react-navigation/native_v5.x.x.js b/native/flow-typed/npm/@react-navigation/native_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/native_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/native_v5.x.x.js @@ -1369,8 +1369,6 @@ declare export type StackOptions = $Partial<{| +title: string, - +header: StackHeaderProps => React$Node, - +headerShown: boolean, +cardShadowEnabled: boolean, +cardOverlayEnabled: boolean, +cardOverlay: {| style: ViewStyleProp |} => React$Node, @@ -1386,6 +1384,9 @@ // Transition ...TransitionPreset, // Header + +header: StackHeaderProps => React$Node, + +headerShown: boolean, + +headerMode: 'float' | 'screen', +headerTitle: string | (StackHeaderTitleInputProps => React$Node), +headerTitleAlign: 'left' | 'center', +headerTitleStyle: AnimatedTextStyleProp, @@ -1471,7 +1472,6 @@ */ declare type StackNavigationConfig = {| - +headerMode?: 'float' | 'screen' | 'none', +detachInactiveScreens?: boolean, |}; diff --git a/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js b/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js --- a/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js +++ b/native/flow-typed/npm/@react-navigation/stack_v5.x.x.js @@ -1369,8 +1369,6 @@ declare export type StackOptions = $Partial<{| +title: string, - +header: StackHeaderProps => React$Node, - +headerShown: boolean, +cardShadowEnabled: boolean, +cardOverlayEnabled: boolean, +cardOverlay: {| style: ViewStyleProp |} => React$Node, @@ -1386,6 +1384,9 @@ // Transition ...TransitionPreset, // Header + +header: StackHeaderProps => React$Node, + +headerShown: boolean, + +headerMode: 'float' | 'screen', +headerTitle: string | (StackHeaderTitleInputProps => React$Node), +headerTitleAlign: 'left' | 'center', +headerTitleStyle: AnimatedTextStyleProp, @@ -1471,7 +1472,6 @@ */ declare type StackNavigationConfig = {| - +headerMode?: 'float' | 'screen' | 'none', +detachInactiveScreens?: boolean, |}; diff --git a/native/navigation/root-navigator.react.js b/native/navigation/root-navigator.react.js --- a/native/navigation/root-navigator.react.js +++ b/native/navigation/root-navigator.react.js @@ -143,6 +143,7 @@ ...transitionPreset, cardStyle: { backgroundColor: 'transparent' }, presentation: 'modal', + headerShown: false, }; const disableGesturesScreenOptions = { gestureEnabled: false, @@ -173,7 +174,7 @@ >(); function RootComponent(): React.Node { return ( - <Root.Navigator headerMode="none" screenOptions={defaultScreenOptions}> + <Root.Navigator screenOptions={defaultScreenOptions}> <Root.Screen name={LoggedOutModalRouteName} component={LoggedOutModal}