UNPKG

1.13 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}
12export interface Props {
13 readonly children: React.ReactNode;
14 readonly useNativeDriver?: boolean;
15 readonly pointerEvents?: ViewProps['pointerEvents'];
16}
17export default class CustomActionSheet extends React.Component<Props, State> {
18 _actionSheetHeight: number;
19 state: State;
20 _deferAfterAnimation?: () => void;
21 componentDidMount(): void;
22 componentWillUnmount(): void;
23 _handleWebKeyDown: (event: KeyboardEvent) => void;
24 _setActionSheetHeight: ({ nativeEvent }: any) => any;
25 render(): JSX.Element;
26 _renderSheet(): JSX.Element | null;
27 showActionSheetWithOptions: (options: ActionSheetOptions, onSelect: (i: number) => void) => void;
28 _selectCancelButton: () => boolean;
29 _onSelect: (index: number) => boolean;
30 _animateOut: () => boolean;
31}
32export {};