Open kyimoemin opened 2 years ago
Same issue here
Am facing same issue, when are we getting a solution
Appears to still be an issue. Anyone have a workaround for using createSharedElementStackNavigator();
and having a modal in that same stack?
I've found you can't use groups but you can still use a modal view
add ...TransitionPresets.ModalPresentationIOS,
to the screen options
Like:
<MyStack.Screen name="..." component={...} options={{ ...TransitionPresets.ModalPresentationIOS, }} />
I found the better way
<ModalStack.Screen
name="modalCard1"
component={ModalView}
options={{
presentation: 'modal'
}}
/>
The
Group
property doesn't include in theRootStack
created bycreateSharedElementStackNavigator
. In react-navigation 6 I have to useRootStack.Group
tag to use a modal. When I check the types and it's only includeNavigator
andScreen
property, notGroup
property.