import React from 'react'; import {TextStyle} from 'react-native'; export interface ModalPropsType { title?: React.ReactNode; visible: boolean; maskClosable?: boolean; closable?: boolean; footer?: Action[]; onClose?: () => void; transparent?: boolean; popup?: boolean; animated?: boolean; locale?: object; animationType?: any; onAnimationEnd?: (visible: boolean) => void; animateAppear?: boolean; operation?: boolean; } export interface Action { text: string; onPress?: () => void | Promise; style?: T | string; } export type Callback = (valueOrLogin: string, password?: string) => void; export type CallbackOrActions = Callback | Action[]; // 点击返回键的回调事件。参考RN中的BackHandler来返回值 export type CallbackOnBackHandler = () => boolean;