Skip to main content

Dialog

Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks.

A dialog is a type of modal window that appears in front of app content to provide critical information or ask for a decision. Dialogs disable all app functionality when they appear, and remain on screen until confirmed, dismissed, or a required action has been taken.

Dialogs are purposefully interruptive, so they should be used sparingly.

💬 Feedback 🎨 Material Design

Import

import {
Dialog,
DialogHeader,
DialogContent,
DialogActions,
} from "@react-native-material/core";

Usage

Simple Alert Dialog

Form Dialog

Props

visible

Type: boolean;

Optional: Yes


onDismiss

Type: () => void;

Optional: Yes