UNPKG

899 BTypeScriptView Raw
1import * as React from 'react';
2import { TextStyle, ViewStyle } from 'react-native';
3export interface ActionSheetProps {
4 showActionSheetWithOptions: (options: ActionSheetOptions, callback: (i: number) => void | Promise<void>) => void;
5}
6export interface ActionSheetIOSOptions {
7 options: string[];
8 title?: string;
9 message?: string;
10 tintColor?: string;
11 cancelButtonIndex?: number;
12 destructiveButtonIndex?: number;
13 anchor?: number;
14 userInterfaceStyle?: 'light' | 'dark';
15}
16export interface ActionSheetOptions extends ActionSheetIOSOptions {
17 icons?: React.ReactNode[];
18 tintIcons?: boolean;
19 textStyle?: TextStyle;
20 titleTextStyle?: TextStyle;
21 messageTextStyle?: TextStyle;
22 autoFocus?: boolean;
23 showSeparators?: boolean;
24 containerStyle?: ViewStyle;
25 separatorStyle?: ViewStyle;
26 useModal?: boolean;
27 destructiveColor?: string;
28}