th3rdwave / react-navigation-bottom-sheet

MIT License
423 stars 18 forks source link

Cannot use `presentation: 'fullScreenModal` ? #3

Closed adelbeke closed 2 years ago

adelbeke commented 2 years ago

Are we allowed to use native modal inside this navigator ?

My screen as modal opens a bottomsheet, weird behaviour

I use Tabs inside my navigator, maybe it isn't handled for now ?

<Stack.Group
    screenOptions={{
    presentation: 'fullScreenModal',
    gestureEnabled: false,
    }}
>
    <Stack.Screen
     name={CONSTANTS.navigation.Screens.ImageDetails}
     component={ImageDetails}
     options={{ animation: 'fade' }}
    />
    <Stack.Screen name={CONSTANTS.navigation.Screens.GroupCU} component={GroupCU} />
    <Stack.Screen
     name={CONSTANTS.navigation.Screens.PostCU}
     component={PostCU}
     options={{}}
    />
    <Stack.Screen name={CONSTANTS.navigation.Screens.PostIn} component={PostIn} />
</Stack.Group>
adelbeke commented 2 years ago

To be able to use native modal, you have to create a nested stack navigator inside the first BottomSheet.Screen