Skip to content

Commit ad5c728

Browse files
CRNS-60: Adding types for SendButton component
Fixes #120
1 parent 18a06ef commit ad5c728

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

types/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ export interface MessageInputProps
217217
/** https://github.com/beefe/react-native-actionsheet/blob/master/lib/styles.js */
218218
actionSheetStyles?: object;
219219
AttachmentFileIcon?: React.ElementType<FileIconUIComponentProps>;
220+
SendButton: React.ElementType<SendButtonProps>;
220221
}
221222

222223
export interface AttachmentProps extends MessageContentContextValue {
@@ -715,6 +716,12 @@ export interface AttachmentActionsProps {
715716
actionHandler?(name: string, value: string): any;
716717
}
717718

719+
export interface SendButtonProps {
720+
title: string;
721+
editing: Client.MessageResponse | boolean;
722+
sendMessage(): void;
723+
}
724+
718725
//================================================================================================
719726
//================================================================================================
720727
//
@@ -810,6 +817,7 @@ export class TypingIndicator extends React.PureComponent<
810817
> {}
811818
export class MessageInput extends React.PureComponent<MessageInputProps, any> {}
812819

820+
export class SendButton extends React.PureComponent<SendButtonProps> {}
813821
export class MessageSimple extends React.PureComponent<
814822
MessageUIComponentProps,
815823
any

0 commit comments

Comments
 (0)