...
|
...
|
@@ -77,7 +77,15 @@ export default class List extends Component { |
|
|
return (
|
|
|
<View style={styles.container}>
|
|
|
{Platform.OS === 'ios'
|
|
|
? <ListView contentContainerStyle={styles.contentContainer} enableEmptySections={true} showsVerticalScrollIndicator={false} dataSource={this.dataSource.cloneWithRowsAndSections(dataBlob)} renderRow={this.renderRow} enablePullToRefresh={true} isOnPullToRefresh={isProductListFetching && products.ptr} onRefreshData={() => {
|
|
|
? <ListView
|
|
|
contentContainerStyle={styles.contentContainer}
|
|
|
enableEmptySections={true}
|
|
|
showsVerticalScrollIndicator={false}
|
|
|
dataSource={this.dataSource.cloneWithRowsAndSections(dataBlob)}
|
|
|
renderRow={this.renderRow}
|
|
|
enablePullToRefresh={true}
|
|
|
isOnPullToRefresh={isProductListFetching && products.ptr}
|
|
|
onRefreshData={() => {
|
|
|
this.props.onRefresh && this.props.onRefresh();
|
|
|
}} onEndReached={() => {
|
|
|
if (list && list.length) {
|
...
|
...
|
@@ -90,7 +98,14 @@ export default class List extends Component { |
|
|
return null;
|
|
|
}
|
|
|
}}/>
|
|
|
: <ListView contentContainerStyle={styles.contentContainer} enableEmptySections={true} showsVerticalScrollIndicator={false} dataSource={this.dataSource.cloneWithRowsAndSections(dataBlob)} renderRow={this.renderRow} enablePullToRefresh={true} refreshControl={< YH_PtrRefresh refreshing = {
|
|
|
: <ListView
|
|
|
contentContainerStyle={styles.contentContainer}
|
|
|
enableEmptySections={true}
|
|
|
showsVerticalScrollIndicator={false}
|
|
|
dataSource={this.dataSource.cloneWithRowsAndSections(dataBlob)}
|
|
|
renderRow={this.renderRow}
|
|
|
enablePullToRefresh={true}
|
|
|
refreshControl={< YH_PtrRefresh refreshing = {
|
|
|
isFetchingAndroid
|
|
|
}
|
|
|
onRefresh = {
|
...
|
...
|
@@ -109,6 +124,9 @@ export default class List extends Component { |
|
|
}
|
|
|
}}/>
|
|
|
}
|
|
|
<LoadingIndicator
|
|
|
isVisible={isProductListFetching && !list.length}
|
|
|
/>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|