fix taps passing through on iOS

This commit is contained in:
Samuel Newman
2025-08-05 20:32:12 +03:00
parent 0f3ada65ad
commit ab5723a508
@@ -1,5 +1,6 @@
import {View} from 'react-native'
import {isIOS} from '#/platform/detection'
import {atoms as a} from '#/alf'
import {Announcement} from '#/components/dialogs/BlockingAnnouncements/announcements/PolicyUpdate202508'
import {useAnnouncementState} from '#/components/dialogs/BlockingAnnouncements/useAnnouncementState'
@@ -25,7 +26,15 @@ export function BlockingAnnouncements() {
return (
<Portal>
<FullWindowOverlay>
<View style={[a.fixed, a.inset_0, {zIndex: 9999}]}>
<View
style={[
a.fixed,
a.inset_0,
// setting a zIndex when using FullWindowOverlay on iOS
// means the taps pass straight through to the underlying content (???)
// so don't set it on iOS. FullWindowOverlay already does the job.
!isIOS && {zIndex: 9999},
]}>
<Announcement state={state} />
</View>
</FullWindowOverlay>