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});
}
}
/>
);
}
... ... @@ -189,7 +193,7 @@ export default class MessageList extends Component {
render() {
let {isFetching, endReached, list, listId, shouldShowEmpty} = this.props.data;
let isLoadingMore = list.size != 0 && isFetching;
if (shouldShowEmpty) {
return (
<View style={styles.container}>
... ...
... ... @@ -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
... ...
... ... @@ -26,7 +26,7 @@ export default class MessageListSmallIconCell extends Component {
let imageUri = body ? body.get('img_url','www.yohobuy.com') : 'www.yohobuy.com';
let content = body ? body.get('content','') : '';
imageUri = SlicedImage.getSlicedUrl(imageUri, 50, 50, 2);
return(
<View style={styles.container}>
<TouchableOpacity
... ... @@ -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
... ...