UNPKG

1.14 kBTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React, { ReactNode } from 'react';
3import { StyleProp, ViewStyle, TextStyle } from 'react-native';
4export interface ActionsProps {
5 options?: {
6 [key: string]: () => void;
7 };
8 optionTintColor?: string;
9 icon?: () => ReactNode;
10 wrapperStyle?: StyleProp<ViewStyle>;
11 iconTextStyle?: StyleProp<TextStyle>;
12 containerStyle?: StyleProp<ViewStyle>;
13 onPressActionButton?(): void;
14}
15export declare function Actions({ options, optionTintColor, icon, wrapperStyle, iconTextStyle, onPressActionButton, containerStyle, }: ActionsProps): React.JSX.Element;
16export declare namespace Actions {
17 var propTypes: {
18 options: PropTypes.Requireable<object>;
19 optionTintColor: PropTypes.Requireable<string>;
20 icon: PropTypes.Requireable<(...args: any[]) => any>;
21 onPressActionButton: PropTypes.Requireable<(...args: any[]) => any>;
22 wrapperStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
23 containerStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
24 };
25}