Skip to content

Commit 6a0bbb7

Browse files
authored
Merge pull request #4946 from GeekyAnts/fix/menu-android
fix: menu android freezing issue
2 parents 9d78448 + ae43d01 commit 6a0bbb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/primitives/Overlay/Overlay.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ export function Overlay({
4343
styleObj.display = exited && !isOpen ? 'none' : 'flex';
4444
}
4545

46+
if (unmountOnExit && !isOpen && exited) {
47+
return null;
48+
}
49+
4650
if (Platform.OS === 'android' && useRNModalOnAndroid) {
4751
return (
4852
<ExitAnimationContext.Provider value={{ exited, setExited }}>
@@ -58,10 +62,6 @@ export function Overlay({
5862
);
5963
}
6064

61-
if (unmountOnExit && !isOpen && exited) {
62-
return null;
63-
}
64-
6565
return (
6666
//@ts-ignore
6767
<OverlayContainer style={{ ...styleObj }}>

0 commit comments

Comments
 (0)