rn-custom-alert-prompt
Version:
ReactNative Alert & Prompt with no dependencies
10 lines (9 loc) • 428 B
TypeScript
import { TextInput } from 'react-native';
import { AlertData, PromptData } from '../types/alertTypes';
export declare const useAlertContainer: () => {
prompt: PromptData | AlertData | undefined;
isAlert: boolean;
setTextInput: import("react").Dispatch<import("react").SetStateAction<string>>;
handlePress: (cancel?: boolean, callback?: () => void) => void;
inputRef: import("react").RefObject<TextInput>;
};