This repository was archived by the owner on Aug 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSend.d.ts
More file actions
41 lines (41 loc) · 1.4 KB
/
Send.d.ts
File metadata and controls
41 lines (41 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { StyleProp, ViewStyle, TextStyle, TouchableOpacityProps } from 'react-native';
export interface SendProps {
text?: string;
label?: string;
containerStyle?: StyleProp<ViewStyle>;
textStyle?: StyleProp<TextStyle>;
children?: React.ReactNode;
alwaysShowSend?: boolean;
disabled?: boolean;
sendButtonProps?: Partial<TouchableOpacityProps>;
onSend?({ text }: {
text: string;
}, b: boolean): void;
}
export default class Send extends Component<SendProps> {
static defaultProps: {
text: string;
onSend: () => void;
label: string;
containerStyle: {};
textStyle: {};
children: null;
alwaysShowSend: boolean;
disabled: boolean;
sendButtonProps: null;
};
static propTypes: {
text: PropTypes.Requireable<string>;
onSend: PropTypes.Requireable<(...args: any[]) => any>;
label: PropTypes.Requireable<string>;
containerStyle: PropTypes.Validator<StyleProp<ViewStyle>> | undefined;
textStyle: PropTypes.Requireable<any>;
children: PropTypes.Requireable<PropTypes.ReactElementLike>;
alwaysShowSend: PropTypes.Requireable<boolean>;
disabled: PropTypes.Requireable<boolean>;
sendButtonProps: PropTypes.Requireable<object>;
};
render(): JSX.Element;
}