@devloops/react-native-variant
Version:
react-native material ui library
24 lines (23 loc) • 587 B
TypeScript
import React from 'react';
import { TextProps } from '../Core/Typography';
declare type ActionType = {
color?: string;
label?: string;
accessibilityLabel?: string;
onPress?: (event?: any) => void;
};
declare type AlertType = {
onDismiss?: () => void | undefined;
header?: {
title?: string;
subtitle?: string;
titleProps?: TextProps;
subtitleProps?: TextProps;
};
prompt?: boolean;
contentText?: string;
action?: ActionType[];
isOpen?: boolean;
};
declare const Alert: React.FC<AlertType>;
export default Alert;