Magic Modallatest
API reference

API reference

The complete public surface of react-native-magic-modal.

Magic Modal intentionally exports a small surface. Most applications use one component, one global object, one hook, and one result enum.

Imports

Every public value and type is available from the package root:

import {
  MagicModalHideReason,
  MagicModalPortal,
  magicModal,
  useMagicModal,
  type Direction,
  type HideReturn,
  type ModalChildren,
  type ModalProps,
  type NewConfigProps,
} from "react-native-magic-modal";

The configuration table is generated directly from the TypeScript source during the docs build. Function pages are curated because generated declarations do not communicate async lifecycle or cancellation semantics well.

On this page