...
|
...
|
@@ -36,20 +36,16 @@ export default class DetailBrand extends React.Component { |
|
|
let {url} = rowData;
|
|
|
if ((rowID+1)%4 == 0) {
|
|
|
return (
|
|
|
<TouchableOpacity onPress={()=>{this.props.onPressBrand&&this.props.onPressBrand(url)}}>
|
|
|
<View style={styles.lastCell}>
|
|
|
<TouchableOpacity style={styles.lastCell} onPress={()=>{this.props.onPressBrand&&this.props.onPressBrand(url)}}>
|
|
|
<Image style={styles.cellImg} source={{uri:rowData.thumb}}/>
|
|
|
<Text style={styles.cellTitle}>{rowData.name}</Text>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
);
|
|
|
} else {
|
|
|
return (
|
|
|
<TouchableOpacity onPress={()=>{this.props.onPressBrand&&this.props.onPressBrand(url)}}>
|
|
|
<View style={styles.cell}>
|
|
|
<TouchableOpacity style={styles.cell} onPress={()=>{this.props.onPressBrand&&this.props.onPressBrand(url)}}>
|
|
|
<Image style={styles.cellImg} source={{uri:rowData.thumb}}/>
|
|
|
<Text style={styles.cellTitle}>{rowData.name}</Text>
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
);
|
|
|
}
|
...
|
...
|
|