@ant-design/react-native
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
28 lines (27 loc) • 1.14 kB
TypeScript
import React from 'react';
import { TextStyle } from 'react-native';
import { WithThemeStyles } from '../style';
import { CallbackOnBackHandler, CallbackOrActions, ModalPropsType } from './PropsType';
import { PromptStyle } from './style/prompt';
export interface PropmptContainerProps extends WithThemeStyles<PromptStyle>, Pick<ModalPropsType, 'modalType'> {
title: React.ReactNode;
message?: React.ReactNode;
type?: 'default' | 'login-password' | 'secure-text';
defaultValue?: string;
actions: CallbackOrActions<TextStyle>;
onAnimationEnd?: (visible: boolean) => void;
placeholders?: string[];
onBackHandler?: CallbackOnBackHandler;
}
export default class PropmptContainer extends React.Component<PropmptContainerProps, any> {
static defaultProps: {
type: string;
defaultValue: string;
};
static contextType: React.Context<import("../locale-provider").LocaleContextProps | undefined>;
constructor(props: PropmptContainerProps);
onBackAndroid: () => boolean;
onClose: () => void;
onChangeText(type: string, value: string): void;
render(): React.JSX.Element;
}