File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ import {
17
17
import { Text } from '~/components/ui/text' ;
18
18
import { H1 , Muted } from '~/components/ui/typography' ;
19
19
20
- const CUSTOM_PORTAL_HOST_NAME = 'modal-example' ;
21
- const WindowOverlay = Platform . OS === 'ios' ? FullWindowOverlay : React . Fragment ;
20
+ const IOS_PORTAL_HOST_NAME = 'modal-example' ;
22
21
23
22
export default function ModalScreen ( ) {
24
23
const insets = useSafeAreaInsets ( ) ;
@@ -50,7 +49,7 @@ export default function ModalScreen() {
50
49
< SelectContent
51
50
insets = { contentInsets }
52
51
className = 'w-full'
53
- portalHost = { CUSTOM_PORTAL_HOST_NAME }
52
+ portalHost = { Platform . select ( { ios : IOS_PORTAL_HOST_NAME } ) }
54
53
sideOffset = { Platform . select ( { ios : 16 } ) }
55
54
>
56
55
< SelectGroup >
@@ -84,9 +83,11 @@ export default function ModalScreen() {
84
83
</ View >
85
84
</ View >
86
85
</ View >
87
- < WindowOverlay >
88
- < PortalHost name = { CUSTOM_PORTAL_HOST_NAME } />
89
- </ WindowOverlay >
86
+ { Platform . OS === 'ios' && (
87
+ < FullWindowOverlay >
88
+ < PortalHost name = { IOS_PORTAL_HOST_NAME } />
89
+ </ FullWindowOverlay >
90
+ ) }
90
91
</ >
91
92
) ;
92
93
}
You can’t perform that action at this time.
0 commit comments