You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems really hard to close all open modals. I have two modals that are open using stackBehavior: 'replace'.
The second modal contains a form that navigates to a different screen on submit. When I submit, it navigates to the new screen, and then opens the old modal again.
I have tried calling dismissAll from useBottomSheetModal. I have tried doing calling Navigation.goBack() and then Navigation.navigate.
The text was updated successfully, but these errors were encountered:
Did some more testing. Tried doing navigation.replace, didn't work. Seems like we need some way to override the following:
constonDismiss=React.useCallback(()=>{// BottomSheetModal will call onDismiss on unmount, be we do not want that since// we already popped the screen.if(isMounted.current){navigation.goBack();}},[navigation]);
It seems really hard to close all open modals. I have two modals that are open using
stackBehavior: 'replace'
.The second modal contains a form that navigates to a different screen on submit. When I submit, it navigates to the new screen, and then opens the old modal again.
I have tried calling
dismissAll
fromuseBottomSheetModal
. I have tried doing callingNavigation.goBack()
and thenNavigation.navigate
.The text was updated successfully, but these errors were encountered: