refactor: rename animationPresentation to presentation

This commit is contained in:
Satyajit Sahoo
2021-05-10 12:42:02 +02:00
parent 1179d56c50
commit 7580efce89
7 changed files with 28 additions and 27 deletions

View File

@@ -118,7 +118,7 @@ export default function MixedStackScreen({ navigation }: Props) {
component={AlbumsScreen}
options={{
title: 'Albums',
animationPresentation: 'modal',
presentation: 'modal',
}}
/>
</MixedStack.Navigator>

View File

@@ -82,7 +82,7 @@ export default function ModalStackScreen({ navigation }: Props) {
}, [navigation]);
return (
<ModalStack.Navigator screenOptions={{ animationPresentation: 'modal' }}>
<ModalStack.Navigator screenOptions={{ presentation: 'modal' }}>
<ModalStack.Screen
name="Article"
component={ArticleScreen}

View File

@@ -84,9 +84,7 @@ export default function TransparentStackScreen({ navigation }: Props) {
}, [navigation]);
return (
<TransparentStack.Navigator
screenOptions={{ animationPresentation: 'modal' }}
>
<TransparentStack.Navigator screenOptions={{ presentation: 'modal' }}>
<TransparentStack.Screen
name="Article"
component={ArticleScreen}