...
|
...
|
@@ -98,7 +98,6 @@ export default class Brand extends Component { |
|
|
reourceForKid={this.props.reourceForKid}
|
|
|
reourceForLifeStyle={this.props.reourceForLifeStyle}
|
|
|
onPressSlideItem= {this.props.onPressSlideItem}
|
|
|
onPressBrandItem={this.props.onPressBrandItem}
|
|
|
onPressFilter= {this.props.onPressFilter}
|
|
|
brandFliter={this.props.brandFliter}
|
|
|
/>
|
...
|
...
|
@@ -163,6 +162,7 @@ export default class Brand extends Component { |
|
|
let contentContainerStyle;
|
|
|
let renderSectionHeader = null;
|
|
|
let showIndexForListView = false;
|
|
|
let showsVerticalScrollIndicator = false;
|
|
|
|
|
|
if (brandFliter == 0) {
|
|
|
list = data ? data.get('all_list') : null;
|
...
|
...
|
@@ -182,10 +182,12 @@ export default class Brand extends Component { |
|
|
list = data ? data.get('new_list') : null;
|
|
|
listDataSource = list ? this.dataSource.cloneWithRows(list.toArray()) : null;
|
|
|
contentContainerStyle = styles.contentContainerTwo;
|
|
|
showsVerticalScrollIndicator = true;
|
|
|
} else if (brandFliter == 2) {
|
|
|
list = data ? data.get('hot_list') : null;
|
|
|
listDataSource = list ? this.dataSource.cloneWithRows(list.toArray()) : null;
|
|
|
contentContainerStyle = styles.contentContainerTwo;
|
|
|
showsVerticalScrollIndicator = true;
|
|
|
}
|
|
|
|
|
|
if (!list) {
|
...
|
...
|
@@ -203,7 +205,7 @@ export default class Brand extends Component { |
|
|
enableEmptySections={true}
|
|
|
dataSource={listDataSource}
|
|
|
renderRow={this.renderRow}
|
|
|
showsVerticalScrollIndicator={false}
|
|
|
showsVerticalScrollIndicator={showsVerticalScrollIndicator}
|
|
|
renderSectionHeader={renderSectionHeader}
|
|
|
renderHeader={this.renderHeader}
|
|
|
/>
|
...
|
...
|
|