Authored by 孙凯

兼容android review by zhanglixia

@@ -32,14 +32,18 @@ export default class BrandListCell extends React.Component { @@ -32,14 +32,18 @@ export default class BrandListCell extends React.Component {
32 this.props.onPressBrandItem && this.props.onPressBrandItem(rowData.url); 32 this.props.onPressBrandItem && this.props.onPressBrandItem(rowData.url);
33 }}> 33 }}>
34 <View style={styles.row}> 34 <View style={styles.row}>
35 - <Image  
36 - source={{uri: rowData.src}}  
37 - style={{ width: itemWidth, height: itemWidth}}  
38 - resizeMode={'contain'}  
39 - ></Image>  
40 - <Text style={styles.text} numberOfLines={1}>  
41 - {rowData.name}  
42 - </Text> 35 + <View style={{ width: itemWidth, height: itemWidth}}>
  36 + <Image
  37 + source={{uri: rowData.src}}
  38 + style={{ width: itemWidth, height: itemWidth}}
  39 + resizeMode={'contain'}
  40 + ></Image>
  41 + </View>
  42 + <View style={styles.textV}>
  43 + <Text style={styles.text} numberOfLines={1}>
  44 + {rowData.name}
  45 + </Text>
  46 + </View>
43 </View> 47 </View>
44 </TouchableOpacity> 48 </TouchableOpacity>
45 ); 49 );
@@ -96,10 +100,16 @@ let styles = StyleSheet.create({ @@ -96,10 +100,16 @@ let styles = StyleSheet.create({
96 backgroundColor: 'white', 100 backgroundColor: 'white',
97 alignItems: 'center', 101 alignItems: 'center',
98 }, 102 },
  103 + textV: {
  104 + width: itemWidth,
  105 + height: 30,
  106 + backgroundColor:'white',
  107 + },
99 text: { 108 text: {
100 fontWeight: 'bold', 109 fontWeight: 'bold',
101 color: 'gray', 110 color: 'gray',
102 width: itemWidth, 111 width: itemWidth,
  112 + height: 30,
103 textAlign: 'center', 113 textAlign: 'center',
104 backgroundColor:'white', 114 backgroundColor:'white',
105 }, 115 },