artwork-react-native
Version:
artwork design master for react-native
35 lines (34 loc) • 989 B
TypeScript
/// <reference types="react" />
/// <reference types="react-native" />
import React from 'react';
import { IPromptStyle } from './style/prompt';
export declare type ButtonType = {
text: string;
onPress?: () => void;
style?: any;
};
export interface PropmptContainerProps {
title: string;
type?: 'default' | 'login-password' | 'secure-text';
message?: string | null;
defaultValue?: string;
actions: Array<ButtonType>;
onAnimationEnd?: (visible: boolean) => void;
styles?: IPromptStyle;
placeholders?: string[];
}
export default class PropmptContainer extends React.Component<PropmptContainerProps, any> {
static defaultProps: {
type: string;
defaultValue: string;
styles: {
[x: string]: number & {
__registeredStyleBrand: any;
};
};
};
constructor(props: any);
onClose: () => void;
onChangeText(type: any, value: any): void;
render(): JSX.Element;
}