Dialog
Modal centrado con título, contenido y botones. Para confirmaciones rápidas sin markup usa Alert. markup use Alert.
Props
| Nombre | Tipo | Por defecto | Descripción |
|---|---|---|---|
| visible | boolean | Shows the dialog. | |
| onClose | () => void | Called from the backdrop, close button and back button. | |
| title | string | Title. | |
| children | ReactNode | Body. Strings are wrapped in a Text. | |
| buttons | {text: string; onPress: () => void; variant?: 'text' | 'solid'; color?: string}[] | Footer buttons, right aligned. | |
| closeOnBackdrop | boolean | true | Tap the backdrop to close. |
| showCloseButton | boolean | false | Close button in the header. |
| closeIcon | IconProp | built-in cross | Close button icon. |
| animationType | 'none' | 'fade' | 'slide' | fade | Modal animation. |
| width | DimensionValue | 85% | Card width (max 480). |
| backgroundColor | string | theme background | Card color. |
| backdropColor | string | theme overlay | Backdrop color. |
| radius | number | theme radius lg | Card radius. |
| style | StyleProp<ViewStyle> | Card style. | |
| titleStyle | StyleProp<TextStyle> | Title style. |