Skip to content

Commit

Permalink
🐞 Fix: ModalSheetView - Unmount Modal Content On Dismissal
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 28, 2024
1 parent 20fc559 commit 8dd5a8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/ModalSheetView/ModalSheetView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ export const ModalSheetView = React.forwardRef<
{...props}
ref={ref => nativeRef.current = ref}
style={styles.nativeModalSheet}
onModalDidHide={(event) => {
setShouldExplicitlyMountModalContents(false);

props.onModalDidHide?.(event);
event.stopPropagation();
}}
>
{children}
</RNIModalSheetView>
Expand Down

0 comments on commit 8dd5a8e

Please sign in to comment.