UNPKG

1.04 kBTypeScriptView Raw
1import * as React from 'react';
2import { ViewProps } from 'react-native';
3import { ActionSheetOptions } from '../types';
4interface State {
5 isVisible: boolean;
6 isAnimating: boolean;
7 options: ActionSheetOptions | null;
8 onSelect: ((i: number) => void) | null;
9 overlayOpacity: any;
10 sheetOpacity: any;
11}
12interface Props {
13 readonly useNativeDriver: boolean | undefined;
14 readonly pointerEvents?: ViewProps['pointerEvents'];
15}
16export default class ActionSheet extends React.Component<Props, State> {
17 static defaultProps: {
18 useNativeDriver: boolean;
19 };
20 _actionSheetHeight: number;
21 state: State;
22 _deferNextShow?: () => void;
23 _setActionSheetHeight: ({ nativeEvent }: any) => any;
24 render(): JSX.Element;
25 _renderSheet(): JSX.Element | null;
26 showActionSheetWithOptions: (options: ActionSheetOptions, onSelect: (i: number) => void) => void;
27 _selectCancelButton: () => boolean | undefined;
28 _onSelect: (index: number) => boolean;
29 _animateOut: () => boolean;
30}
31export {};