mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-26 09:14:22 +08:00
feat: automatically set headerMode if it's modal presentation style
This commit is contained in:
@@ -111,7 +111,6 @@ export default function MixedStackScreen({ navigation }: Props) {
|
||||
component={ArticleScreen}
|
||||
options={({ route }) => ({
|
||||
title: `Article by ${route.params.author}`,
|
||||
headerMode: 'screen',
|
||||
})}
|
||||
initialParams={{ author: 'Gandalf' }}
|
||||
/>
|
||||
@@ -120,7 +119,6 @@ export default function MixedStackScreen({ navigation }: Props) {
|
||||
component={AlbumsScreen}
|
||||
options={{
|
||||
title: 'Albums',
|
||||
headerMode: 'screen',
|
||||
...TransitionPresets.ModalPresentationIOS,
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user