Alert Dialog

A modal dialog that interrupts the user with important content and expects a response.

⚠️ Important: You must wrap your app with SmacOverlayProvider to use useGlobalOverlay. More: Installation.

Usage

import { useGlobalOverlay } from "@smartacteam/react-native-ui";
const { showAlertDialog } = useGlobalOverlay();

showAlertDialog({
  title: 'Are you absolutely sure?',
  description:
    'This action cannot be undone. This will permanently delete your account and remove your data from our servers.',
  onContinue: () => {},
});

Example

Preview

Props

You can view AlertDialogOptions on useGlobalOverlay page