rn-custom-alert-prompt
Version:
ReactNative Alert & Prompt with no dependencies
8 lines (7 loc) • 404 B
TypeScript
import { AlertData, PromptData } from '../types/alertTypes';
export declare namespace Alert {
function alert(params: AlertData): Promise<boolean>;
function alert(title: string, description: string, onPress?: () => void): Promise<boolean>;
function prompt(params: PromptData): Promise<string>;
function prompt(title: string, description?: string, onPress?: () => void): Promise<string>;
}