1 | import PropTypes from 'prop-types';
|
2 | import React, { ReactNode } from 'react';
|
3 | import { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
4 | export interface ActionsProps {
|
5 | options?: {
|
6 | [key: string]: any;
|
7 | };
|
8 | optionTintColor?: string;
|
9 | icon?: () => ReactNode;
|
10 | wrapperStyle?: StyleProp<ViewStyle>;
|
11 | iconTextStyle?: StyleProp<TextStyle>;
|
12 | containerStyle?: StyleProp<ViewStyle>;
|
13 | onPressActionButton?(): void;
|
14 | }
|
15 | export default class Actions extends React.Component<ActionsProps> {
|
16 | static defaultProps: ActionsProps;
|
17 | static propTypes: {
|
18 | onSend: PropTypes.Requireable<(...args: any[]) => any>;
|
19 | options: PropTypes.Requireable<object>;
|
20 | optionTintColor: PropTypes.Requireable<string>;
|
21 | icon: PropTypes.Requireable<(...args: any[]) => any>;
|
22 | onPressActionButton: PropTypes.Requireable<(...args: any[]) => any>;
|
23 | wrapperStyle: PropTypes.Requireable<number | boolean | object>;
|
24 | containerStyle: PropTypes.Requireable<number | boolean | object>;
|
25 | };
|
26 | static contextTypes: {
|
27 | actionSheet: PropTypes.Requireable<(...args: any[]) => any>;
|
28 | };
|
29 | onActionsPress: () => void;
|
30 | renderIcon(): {} | null | undefined;
|
31 | render(): JSX.Element;
|
32 | }
|