@uiw/react-native
Version:
UIW for React Native
22 lines (21 loc) • 698 B
TypeScript
import React from 'react';
import { ModalProps } from 'react-native';
export { default as ActionSheetItem } from './item';
export interface ActionSheetProps extends ModalProps {
/** 点击蒙层是否关闭 */
onCancel?: Boolean;
/** 取消的文本 */
cancelText?: React.ReactNode;
}
interface ActionSheetState {
animatedHeight: number;
stateVisible: boolean;
}
export default class ActionSheet extends React.Component<ActionSheetProps, ActionSheetState> {
private fadeAnim;
private animatedRef;
constructor(props: ActionSheetProps);
onClose: () => void;
UNSAFE_componentWillReceiveProps(nextProps: ActionSheetProps): void;
render(): JSX.Element;
}