diff --git a/src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.js b/src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.js index 2f4ee7780346..9c6116620be2 100644 --- a/src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.js +++ b/src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.js @@ -64,7 +64,17 @@ function ImageRenderer(props) { const route = ROUTES.getReportAttachmentRoute(report.reportID, source); Navigation.navigate(route); }} - onLongPress={(event) => showContextMenuForReport(event, anchor, report.reportID, action, checkIfContextMenuActive, ReportUtils.isArchivedRoom(report))} + onLongPress={(event) => + showContextMenuForReport( + // Imitate the web event for native renderers + {nativeEvent: {...(event.nativeEvent || {}), target: {tagName: 'IMG'}}}, + anchor, + report.reportID, + action, + checkIfContextMenuActive, + ReportUtils.isArchivedRoom(report), + ) + } accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON} accessibilityLabel={props.translate('accessibilityHints.viewAttachment')} >