@@ -169,13 +169,16 @@ 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
173- * // component such as handleEdit, handleDelete, showActionSheet
174- * // Source - https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageContent.js
175172 * }}
176173 * )
177174 * }
178175 * ```
176+ *
177+ * Similarly, you can also call other methods available on MessageContent
178+ * component such as handleEdit, handleDelete, showActionSheet etc.
179+ *
180+ * Source - [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageContent.js)
181+ *
179182 * @param {Component } thisArg Reference to MessageContent component
180183 * @param message Message object which was pressed
181184 * @param e Event object for onPress event
@@ -194,12 +197,16 @@ export const MessageContent = themed(
194197 * {...props}
195198 * onLongPress={(thisArg, message, e) => {
196199 * thisArg.openReactionSelector();
197- * // Similarly, you can also call other methods available on MessageContent
198- * // component such as handleEdit, handleDelete, showActionSheet
199- * // Source - https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageContent.js
200200 * }}
201201 * )
202202 * }
203+ *
204+ * Similarly, you can also call other methods available on MessageContent
205+ * component such as handleEdit, handleDelete, showActionSheet etc.
206+ *
207+ * Source - [MessageContent](https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/MessageSimple/MessageContent.js)
208+ *
209+ * By default we show action sheet with all the message actions on long press.
203210 * ```
204211 *
205212 * @param {Component } thisArg Reference to MessageContent component
@@ -222,6 +229,13 @@ export const MessageContent = themed(
222229 handleAction : PropTypes . func ,
223230 /** Position of message. 'right' | 'left' */
224231 alignment : PropTypes . string ,
232+ /**
233+ * Position of message in group - top, bottom, middle, single.
234+ *
235+ * Message group is a group of consecutive messages from same user. groupStyles can be used to style message as per their position in message group
236+ * e.g., user avatar (to which message belongs to) is only showed for last (bottom) message in group.
237+ */
238+ groupStyles : PropTypes . array ,
225239 /**
226240 * Style object for actionsheet (used to message actions).
227241 * Supported styles: https://github.com/beefe/react-native-actionsheet/blob/master/lib/styles.js
0 commit comments