@ant-design/react-native
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
27 lines (26 loc) • 818 B
TypeScript
import React from 'react';
import { TextStyle } from 'react-native';
export interface ModalPropsType<T> {
title?: React.ReactNode;
visible: boolean;
maskClosable?: boolean;
closable?: boolean;
footer?: Action<T>[];
onClose?: () => void;
transparent?: boolean;
popup?: boolean;
animated?: boolean;
locale?: object;
animationType?: any;
onAnimationEnd?: (visible: boolean) => void;
animateAppear?: boolean;
operation?: boolean;
}
export interface Action<T = TextStyle> {
text: string;
onPress?: () => void | Promise<any>;
style?: T | string;
}
export declare type Callback = (valueOrLogin: string, password?: string) => void;
export declare type CallbackOrActions<T> = Callback | Action<T>[];
export declare type CallbackOnBackHandler = () => boolean;