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:
Elias Nahum
2019-09-26 00:19:49 +03:00
committed by GitHub
parent 24cb1a3316
commit 9975a19b91
44 changed files with 379 additions and 251 deletions

View File

@@ -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>
);
}
}