优化站内信列表点击效果 review by 陈琳
Showing
5 changed files
with
16 additions
and
0 deletions
@@ -130,6 +130,10 @@ export default class MessageList extends Component { | @@ -130,6 +130,10 @@ export default class MessageList extends Component { | ||
130 | onLongPressListItem={(itemData) =>{ | 130 | onLongPressListItem={(itemData) =>{ |
131 | this.onLongPressListItem(itemData, rowID); | 131 | this.onLongPressListItem(itemData, rowID); |
132 | }} | 132 | }} |
133 | + onPressListItem={(itemData) =>{ | ||
134 | + this.setState({showToolTips: false}); | ||
135 | + } | ||
136 | + } | ||
133 | /> | 137 | /> |
134 | ); | 138 | ); |
135 | } | 139 | } |
@@ -33,6 +33,9 @@ export default class MessageListBigIconCell extends Component { | @@ -33,6 +33,9 @@ export default class MessageListBigIconCell extends Component { | ||
33 | onLongPress={() =>{ | 33 | onLongPress={() =>{ |
34 | this.props.onLongPressListItem && this.props.onLongPressListItem(itemData); | 34 | this.props.onLongPressListItem && this.props.onLongPressListItem(itemData); |
35 | }} | 35 | }} |
36 | + onPress={() =>{ | ||
37 | + this.props.onPressListItem && this.props.onPressListItem(itemData); | ||
38 | + }} | ||
36 | > | 39 | > |
37 | <View style={styles.titleContainer}> | 40 | <View style={styles.titleContainer}> |
38 | <Text | 41 | <Text |
@@ -31,6 +31,9 @@ export default class MessageListOrderCell extends Component { | @@ -31,6 +31,9 @@ export default class MessageListOrderCell extends Component { | ||
31 | onLongPress={() =>{ | 31 | onLongPress={() =>{ |
32 | this.props.onLongPressListItem && this.props.onLongPressListItem(itemData); | 32 | this.props.onLongPressListItem && this.props.onLongPressListItem(itemData); |
33 | }} | 33 | }} |
34 | + onPress={() =>{ | ||
35 | + this.props.onPressListItem && this.props.onPressListItem(itemData); | ||
36 | + }} | ||
34 | > | 37 | > |
35 | <View style={styles.contentContainer}> | 38 | <View style={styles.contentContainer}> |
36 | <Text | 39 | <Text |
@@ -34,6 +34,9 @@ export default class MessageListSmallIconCell extends Component { | @@ -34,6 +34,9 @@ export default class MessageListSmallIconCell extends Component { | ||
34 | onLongPress={() =>{ | 34 | onLongPress={() =>{ |
35 | this.props.onLongPressListItem && this.props.onLongPressListItem(itemData); | 35 | this.props.onLongPressListItem && this.props.onLongPressListItem(itemData); |
36 | }} | 36 | }} |
37 | + onPress={() =>{ | ||
38 | + this.props.onPressListItem && this.props.onPressListItem(itemData); | ||
39 | + }} | ||
37 | > | 40 | > |
38 | <View style={styles.contentContainer}> | 41 | <View style={styles.contentContainer}> |
39 | <Text | 42 | <Text |
@@ -26,6 +26,9 @@ export default class MessageListTextCell extends Component { | @@ -26,6 +26,9 @@ export default class MessageListTextCell extends Component { | ||
26 | onLongPress={() =>{ | 26 | onLongPress={() =>{ |
27 | this.props.onLongPressListItem && this.props.onLongPressListItem(itemData); | 27 | this.props.onLongPressListItem && this.props.onLongPressListItem(itemData); |
28 | }} | 28 | }} |
29 | + onPress={() =>{ | ||
30 | + this.props.onPressListItem && this.props.onPressListItem(itemData); | ||
31 | + }} | ||
29 | > | 32 | > |
30 | <View style={styles.container}> | 33 | <View style={styles.container}> |
31 | <Text | 34 | <Text |
-
Please register or login to post a comment