diff --git a/src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/BasePreRenderer.js b/src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/BasePreRenderer.js index 8226a11b8d09..c6248a93258c 100644 --- a/src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/BasePreRenderer.js +++ b/src/components/HTMLEngineProvider/HTMLRenderers/PreRenderer/BasePreRenderer.js @@ -1,6 +1,6 @@ import React, {forwardRef} from 'react'; import {ScrollView} from 'react-native-gesture-handler'; -import {TouchableWithoutFeedback, View} from 'react-native'; +import {View} from 'react-native'; import PropTypes from 'prop-types'; import _ from 'underscore'; import htmlRendererPropTypes from '../htmlRendererPropTypes'; @@ -8,6 +8,7 @@ import withLocalize from '../../../withLocalize'; import {ShowContextMenuContext, showContextMenuForReport} from '../../../ShowContextMenuContext'; import styles from '../../../../styles/styles'; import * as ReportUtils from '../../../../libs/ReportUtils'; +import PressableWithoutFeedback from '../../../Pressable/PressableWithoutFeedback'; const propTypes = { /** Press in handler for the code block */ @@ -37,16 +38,18 @@ const BasePreRenderer = forwardRef((props, ref) => { > {({anchor, report, action, checkIfContextMenuActive}) => ( - showContextMenuForReport(event, anchor, report.reportID, action, checkIfContextMenuActive, ReportUtils.isArchivedRoom(report))} + accessibilityRole="text" + accessibilityLabel="prestyled text" > {/* eslint-disable-next-line react/jsx-props-no-spreading */} - + )}