forked from Ivasoft/mattermost-mobile
MM-18236 Prevent the post menu from triggering when using the back gesture (#3319)
* MM-18236 Prevent the post menu from triggering when using the back gesture in the thread screen * Update snapshots * Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com> * Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com> * Update app/components/post/post.js Co-Authored-By: Miguel Alatzar <migbot@users.noreply.github.com> * Update app/components/touchable_with_feedback/touchable_with_feedback.ios.js * Fix eslint
This commit is contained in:
@@ -8,12 +8,12 @@ import {
|
||||
Clipboard,
|
||||
StyleSheet,
|
||||
Text,
|
||||
TouchableOpacity,
|
||||
View,
|
||||
} from 'react-native';
|
||||
|
||||
import CustomPropTypes from 'app/constants/custom_prop_types';
|
||||
import FormattedText from 'app/components/formatted_text';
|
||||
import TouchableWithFeedback from 'app/components/touchable_with_feedback';
|
||||
import BottomSheet from 'app/utils/bottom_sheet';
|
||||
import {getDisplayNameForLanguage} from 'app/utils/markdown';
|
||||
import {preventDoubleTap} from 'app/utils/tap';
|
||||
@@ -153,9 +153,10 @@ export default class MarkdownCodeBlock extends React.PureComponent {
|
||||
}
|
||||
|
||||
return (
|
||||
<TouchableOpacity
|
||||
<TouchableWithFeedback
|
||||
onPress={this.handlePress}
|
||||
onLongPress={this.handleLongPress}
|
||||
type={'opacity'}
|
||||
>
|
||||
<View style={style.container}>
|
||||
<View style={style.lineNumbers}>
|
||||
@@ -173,7 +174,7 @@ export default class MarkdownCodeBlock extends React.PureComponent {
|
||||
</View>
|
||||
{language}
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
</TouchableWithFeedback>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user