Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: message longPress not working. #1018

Merged
merged 1 commit into from Aug 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/message/MessageBrief.js
Expand Up @@ -44,11 +44,13 @@ export default class MessageBrief extends PureComponent {
return (
<View style={styles.message}>
<View style={styles.messageContentWrapper}>
<TouchableWithoutFeedback onLongPress={onLongPress}>
<ScrollView style={styles.childrenWrapper}>
{children}
</ScrollView>
</TouchableWithoutFeedback>
<ScrollView style={styles.childrenWrapper}>
<TouchableWithoutFeedback onLongPress={onLongPress}>
<View>
{children}
</View>
</TouchableWithoutFeedback>
</ScrollView>
</View>
<MessageTags timestamp={message.last_edit_timestamp} starred={starred} />
<ReactionList messageId={message.id} reactions={message.reactions} ownEmail={ownEmail} />
Expand Down
12 changes: 7 additions & 5 deletions src/message/MessageFull.js
Expand Up @@ -63,11 +63,13 @@ class MessageFull extends PureComponent {
twentyFourHourTime={twentyFourHourTime}
/>
<View style={styles.contentWrapper}>
<TouchableWithoutFeedback onLongPress={onLongPress}>
<ScrollView style={styles.inner}>
{children}
</ScrollView>
</TouchableWithoutFeedback>
<ScrollView style={styles.inner}>
<TouchableWithoutFeedback onLongPress={onLongPress}>
<View>
{children}
</View>
</TouchableWithoutFeedback>
</ScrollView>
</View>
<MessageTags timestamp={message.last_edit_timestamp} starred={starred} />
<ReactionList messageId={message.id} reactions={message.reactions} ownEmail={ownEmail} />
Expand Down