Skip to content

Commit 95ca558

Browse files
CRNS-54: Fixing typo
1 parent 8ffde00 commit 95ca558

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

src/components/MessageSimple/MessageContent.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const MessageContent = themed(
153153
* @param e Event object for onPress event
154154
* @param message Message object which was pressed
155155
*
156-
* @deprecated User onPress instead
156+
* @deprecated Use onPress instead
157157
* */
158158
onMessageTouch: PropTypes.func,
159159
/**
@@ -169,7 +169,8 @@ export const MessageContent = themed(
169169
* {...props}
170170
* onPress={(thisArg, message, e) => {
171171
* thisArg.openReactionSelector();
172-
* // Similarly, you can also call other methods available on MessageContent component such as handleEdit, handleDelete, showActionSheet
172+
* // Similarly, you can also call other methods available on MessageContent
173+
* // component such as handleEdit, handleDelete, showActionSheet
173174
* // Source - https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageContent.js
174175
* }}
175176
* )
@@ -193,7 +194,8 @@ export const MessageContent = themed(
193194
* {...props}
194195
* onLongPress={(thisArg, message, e) => {
195196
* thisArg.openReactionSelector();
196-
* // Similarly, you can also call other methods available on MessageContent component such as handleEdit, handleDelete, showActionSheet
197+
* // Similarly, you can also call other methods available on MessageContent
198+
* // component such as handleEdit, handleDelete, showActionSheet
197199
* // Source - https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageContent.js
198200
* }}
199201
* )

src/components/MessageSimple/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const MessageSimple = themed(
4949
* @param e Event object for onPress event
5050
* @param message Message object which was pressed
5151
*
52-
* @deprecated User onPress instead
52+
* @deprecated Use onPress instead
5353
* */
5454
onMessageTouch: PropTypes.func,
5555
/**
@@ -65,7 +65,8 @@ export const MessageSimple = themed(
6565
* {...props}
6666
* onPress={(thisArg, message, e) => {
6767
* thisArg.openReactionSelector();
68-
* // Similarly, you can also call other methods available on MessageContent component such as handleEdit, handleDelete, showActionSheet
68+
* // Similarly, you can also call other methods available on MessageContent
69+
* // component such as handleEdit, handleDelete, showActionSheet
6970
* // Source - https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageContent.js
7071
* }}
7172
* )
@@ -89,7 +90,8 @@ export const MessageSimple = themed(
8990
* {...props}
9091
* onLongPress={(thisArg, message, e) => {
9192
* thisArg.openReactionSelector();
92-
* // Similarly, you can also call other methods available on MessageContent component such as handleEdit, handleDelete, showActionSheet
93+
* // Similarly, you can also call other methods available on MessageContent
94+
* // component such as handleEdit, handleDelete, showActionSheet
9395
* // Source - https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageContent.js
9496
* }}
9597
* )

types/index.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,16 @@ export interface MessageUIComponentProps
399399
e: GestureResponderEvent,
400400
message: Client.MessageResponse,
401401
): void;
402+
onPress?(
403+
thisArg: React.Component<MessageUIComponentProps>,
404+
message: Client.MessageResponse,
405+
e: GestureResponderEvent,
406+
): any;
407+
onLongPress?(
408+
thisArg: React.Component<MessageUIComponentProps>,
409+
message: Client.MessageResponse,
410+
e: GestureResponderEvent,
411+
): any;
402412
handleReaction(reactionType: string, event?: React.BaseSyntheticEvent): void;
403413
handleDelete?(): void;
404414
handleEdit?(): void;

0 commit comments

Comments
 (0)