feat: automatically set headerMode if it's modal presentation style

This commit is contained in:
Satyajit Sahoo
2021-05-08 23:13:30 +02:00
parent 260da9b103
commit 4bb0b43f1a
7 changed files with 137 additions and 190 deletions

View File

@@ -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,
}}
/>