...
|
...
|
@@ -22,7 +22,7 @@ export default class MessageListBigIconCell extends Component { |
|
|
let body = itemData.get('body');
|
|
|
let imageUri = body ? body.get('img_url', 'www.yohobuy.com') : 'www.yohobuy.com';
|
|
|
let content = body ? body.get('content','') : '';
|
|
|
imageUri = imageUri.replace('{width}', width).replace('{height}', 117).replace('{mode}',2);
|
|
|
imageUri = imageUri.replace('{width}', width).replace('{height}', iconHeight).replace('{mode}',2);
|
|
|
return(
|
|
|
<View style={styles.container}>
|
|
|
<View style={styles.titleContainer}>
|
...
|
...
|
@@ -55,6 +55,8 @@ export default class MessageListBigIconCell extends Component { |
|
|
}
|
|
|
|
|
|
let {width, height} = Dimensions.get('window');
|
|
|
let scale = (width/375.0);
|
|
|
let iconHeight = Math.ceil(117*scale);
|
|
|
|
|
|
let styles = StyleSheet.create({
|
|
|
container: {
|
...
|
...
|
@@ -75,7 +77,7 @@ let styles = StyleSheet.create({ |
|
|
},
|
|
|
iconStyle: {
|
|
|
width,
|
|
|
height: 117,
|
|
|
height: iconHeight,
|
|
|
backgroundColor: 'transparent'
|
|
|
},
|
|
|
descContainer: {
|
...
|
...
|
|