Authored by shangjf

优化站内信列表点击效果 review by 陈琳

... ... @@ -130,6 +130,10 @@ export default class MessageList extends Component {
onLongPressListItem={(itemData) =>{
this.onLongPressListItem(itemData, rowID);
}}
onPressListItem={(itemData) =>{
this.setState({showToolTips: false});
}
}
/>
);
}
... ...
... ... @@ -33,6 +33,9 @@ export default class MessageListBigIconCell extends Component {
onLongPress={() =>{
this.props.onLongPressListItem && this.props.onLongPressListItem(itemData);
}}
onPress={() =>{
this.props.onPressListItem && this.props.onPressListItem(itemData);
}}
>
<View style={styles.titleContainer}>
<Text
... ...
... ... @@ -31,6 +31,9 @@ export default class MessageListOrderCell extends Component {
onLongPress={() =>{
this.props.onLongPressListItem && this.props.onLongPressListItem(itemData);
}}
onPress={() =>{
this.props.onPressListItem && this.props.onPressListItem(itemData);
}}
>
<View style={styles.contentContainer}>
<Text
... ...
... ... @@ -34,6 +34,9 @@ export default class MessageListSmallIconCell extends Component {
onLongPress={() =>{
this.props.onLongPressListItem && this.props.onLongPressListItem(itemData);
}}
onPress={() =>{
this.props.onPressListItem && this.props.onPressListItem(itemData);
}}
>
<View style={styles.contentContainer}>
<Text
... ...
... ... @@ -26,6 +26,9 @@ export default class MessageListTextCell extends Component {
onLongPress={() =>{
this.props.onLongPressListItem && this.props.onLongPressListItem(itemData);
}}
onPress={() =>{
this.props.onPressListItem && this.props.onPressListItem(itemData);
}}
>
<View style={styles.container}>
<Text
... ...