We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9ae1f9 commit ae43d01Copy full SHA for ae43d01
src/components/primitives/Overlay/Overlay.tsx
@@ -43,6 +43,10 @@ export function Overlay({
43
styleObj.display = exited && !isOpen ? 'none' : 'flex';
44
}
45
46
+ if (unmountOnExit && !isOpen && exited) {
47
+ return null;
48
+ }
49
+
50
if (Platform.OS === 'android' && useRNModalOnAndroid) {
51
return (
52
<ExitAnimationContext.Provider value={{ exited, setExited }}>
@@ -58,10 +62,6 @@ export function Overlay({
58
62
);
59
63
60
64
61
- if (unmountOnExit && !isOpen && exited) {
- return null;
- }
-
65
66
//@ts-ignore
67
<OverlayContainer style={{ ...styleObj }}>
0 commit comments