Genesis
@beta

NativeFullScreenModal

FullScreenModal — content that takes the whole screen over the app: a photo or video viewer, a camera, a scanner. React Native's `Modal`, over the whole screen on both platforms (`overFullScreen` on iOS; under the system bars on Android), faded in (no animation with Reduce Motion). `tone="dark"` (the default) is a black backdrop with light status bar content, for media; `tone="app"` is the theme's background; `tone="none"` draws no backdrop, for content that draws its own (a viewer that fades to show the app as it's dragged away, with `FULL_SCREEN_DARK` behind it). Content gets its own safe area (`useSafeAreaInsets` inside is the modal's) and places its own close control: Android back and the VoiceOver escape gesture call `onOpenChange(false)`. For a short task over the app, use <NativeSheet>; for a confirmation, <NativeDialog>.

packages/ui-native/src/components/full-screen-modal.tsx

Import
Subpath export: @marktiderman/genesis-ui-native
import { NativeFullScreenModal } from "@marktiderman/genesis-ui-native";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

NativeFullScreenModal

PropTypeDefaultDescription
onOpenChange*(open: boolean) => void—Fired with false on Android back and the VoiceOver escape gesture. Set `open` false in it.
open*boolean—
testIDstringnative-full-screen-modal
toneenumdark`"dark"` (default): black, for photos and video. `"app"`: the theme's background. `"none"`: the content draws its own.

FULL_SCREEN_DARK

The dark tone's backdrop: media reads best on true black in light and dark mode alike.

No declared props.