Skip to content

Commit

Permalink
fix: message longPress not working. (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
jainkuniya authored and borisyankov committed Aug 12, 2017
1 parent 7fbe5bd commit 07fe489
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
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

0 comments on commit 07fe489

Please sign in to comment.