Authored by 孙凯

兼容android review by zhanglixia

... ... @@ -32,15 +32,19 @@ export default class BrandListCell extends React.Component {
this.props.onPressBrandItem && this.props.onPressBrandItem(rowData.url);
}}>
<View style={styles.row}>
<View style={{ width: itemWidth, height: itemWidth}}>
<Image
source={{uri: rowData.src}}
style={{ width: itemWidth, height: itemWidth}}
resizeMode={'contain'}
></Image>
</View>
<View style={styles.textV}>
<Text style={styles.text} numberOfLines={1}>
{rowData.name}
</Text>
</View>
</View>
</TouchableOpacity>
);
}
... ... @@ -96,10 +100,16 @@ let styles = StyleSheet.create({
backgroundColor: 'white',
alignItems: 'center',
},
textV: {
width: itemWidth,
height: 30,
backgroundColor:'white',
},
text: {
fontWeight: 'bold',
color: 'gray',
width: itemWidth,
height: 30,
textAlign: 'center',
backgroundColor:'white',
},
... ...