npx gluestack-ui add portalimport { Portal } from '@/components/ui/portal';
export default () => <Portal />;
| Prop | Type | Default | Description |
|---|---|---|---|
isOpen | boolean | - | If true, the portal will open. |
isKeyboardDismissable | boolean | - | If true, the keyboard can dismiss the portal. |
useRNModal | boolean | false | If true, renders react-native native modal. |
useRNModalOnAndroid | boolean | false | If true, renders react-native native modal only in android. |
onRequestClose | ((event: NativeSyntheticEvent<any>) => void) | undefined | - | Callback is called when the user taps the hardware back button on
Android or the menu button on Apple TV. This is required on Apple TV and
Android. Only applicable when useRNModal is true. |
animationPreset | "fade" | "slide" | "none" | "fade" | The animation preset for the portal. |