...
|
...
|
@@ -13,6 +13,7 @@ import { |
|
|
} from 'react-native';
|
|
|
|
|
|
import AllBrandListCell from '../AllBrandListCell';
|
|
|
import NoData from './NoData';
|
|
|
|
|
|
export default class Brand extends Component {
|
|
|
constructor(props) {
|
...
|
...
|
@@ -61,6 +62,7 @@ export default class Brand extends Component { |
|
|
render() {
|
|
|
let {
|
|
|
filtedBrands,
|
|
|
noData,
|
|
|
} = this.props;
|
|
|
|
|
|
let data = {
|
...
|
...
|
@@ -72,13 +74,13 @@ export default class Brand extends Component { |
|
|
|
|
|
return (
|
|
|
<View style={styles.container}>
|
|
|
<ListView
|
|
|
{noData ? <NoData /> : <ListView
|
|
|
contentContainerStyle={styles.contentContainer}
|
|
|
enableEmptySections={true}
|
|
|
dataSource={this.dataSource.cloneWithRowsAndSections(data)}
|
|
|
renderRow={this.renderRow}
|
|
|
renderSectionHeader={this.renderSectionHeader}
|
|
|
/>
|
|
|
/>}
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|