File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ const DefaultMessageWithContext = React.memo((props) => {
6969 const handleFlag = async ( ) => await client . flagMessage ( message . id ) ;
7070 const handleMute = async ( ) => await client . muteUser ( message . user . id ) ;
7171
72- const onShowActionSheet = async ( ) => {
72+ const showActionSheet = async ( ) => {
7373 await dismissKeyboard ( ) ;
7474 setActionSheetVisible ( true ) ;
7575 } ;
@@ -193,10 +193,10 @@ const DefaultMessageWithContext = React.memo((props) => {
193193 isAdmin = { isAdmin }
194194 isModerator = { isModerator }
195195 isMyMessage = { isMyMessage }
196- onShowActionSheet = { onShowActionSheet }
197196 openReactionPicker = { openReactionPicker }
198197 reactionPickerVisible = { reactionPickerVisible }
199198 setActionSheetVisible = { setActionSheetVisible }
199+ showActionSheet = { showActionSheet }
200200 />
201201 </ TouchableOpacity >
202202 ) ;
Original file line number Diff line number Diff line change @@ -145,14 +145,14 @@ const MessageContentWithContext = React.memo((props) => {
145145 messageActions,
146146 onLongPress,
147147 onPress,
148- onShowActionSheet,
149148 onThreadSelect,
150149 openReactionPicker,
151150 reactionPickerVisible,
152151 reactionsEnabled = true ,
153152 repliesEnabled = true ,
154153 retrySendMessage,
155154 setActionSheetVisible,
155+ showActionSheet,
156156 supportedReactions = emojiData ,
157157 threadList,
158158 } = props ;
@@ -217,7 +217,7 @@ const MessageContentWithContext = React.memo((props) => {
217217 onLongPress && ! disabled
218218 ? ( e ) => onLongPress ( message , e )
219219 : enableLongPress
220- ? onShowActionSheet
220+ ? showActionSheet
221221 : ( ) => null ,
222222 onPress : onPress ? ( e ) => onPress ( message , e ) : ( ) => null ,
223223 status : message . status ,
@@ -594,10 +594,6 @@ MessageContent.propTypes = {
594594 * @param e Event object for onPress event
595595 * */
596596 onPress : PropTypes . func ,
597- /**
598- * Opens the action sheet
599- */
600- onShowActionSheet : PropTypes . func ,
601597 /**
602598 * Handler to open the thread on message. This is callback for touch event for replies button.
603599 *
@@ -621,6 +617,10 @@ MessageContent.propTypes = {
621617 * React useState hook setter function that toggles action sheet visibility
622618 */
623619 setActionSheetVisible : PropTypes . func ,
620+ /**
621+ * Opens the action sheet
622+ */
623+ showActionSheet : PropTypes . func ,
624624 /**
625625 * e.g.,
626626 * [
Original file line number Diff line number Diff line change @@ -316,10 +316,6 @@ MessageSimple.propTypes = {
316316 * @param e Event object for onPress event
317317 * */
318318 onPress : PropTypes . func ,
319- /**
320- * Opens the action sheet
321- */
322- onShowActionSheet : PropTypes . func ,
323319 /**
324320 * Handler to open the thread on message. This is callback for touch event for replies button.
325321 *
@@ -345,6 +341,10 @@ MessageSimple.propTypes = {
345341 * React useState hook setter function that toggles action sheet visibility
346342 */
347343 setActionSheetVisible : PropTypes . func ,
344+ /**
345+ * Opens the action sheet
346+ */
347+ showActionSheet : PropTypes . func ,
348348 showMessageStatus : PropTypes . bool ,
349349 showReactionsList : PropTypes . bool ,
350350 /**
You can’t perform that action at this time.
0 commit comments