...
|
...
|
@@ -12,6 +12,7 @@ import ReactNative, { |
|
|
TouchableOpacity,
|
|
|
InteractionManager,
|
|
|
Platform,
|
|
|
RefreshControl,
|
|
|
} from 'react-native';
|
|
|
import Immutable, {Map} from 'immutable';
|
|
|
import LoadMoreIndicator from '../../../common/components/LoadMoreIndicator';
|
...
|
...
|
@@ -44,7 +45,6 @@ import VipUserFloor from '../floor/VipUserFloor'; |
|
|
import ActivityProductFloor from '../floor/ActivityProductFloor';
|
|
|
import HotCategoryIndividualization from '../floor/HotCategoryIndividualization';
|
|
|
import ProductListCell from '../../../common/components/ListCell/ProductListCell';
|
|
|
import channelTransfer from '../../../common/utils/channelTransfer';
|
|
|
|
|
|
export default class Home extends Component {
|
|
|
|
...
|
...
|
@@ -443,6 +443,10 @@ export default class Home extends Component { |
|
|
|
|
|
return (
|
|
|
<View style={styles.container}>
|
|
|
|
|
|
{
|
|
|
Platform.OS === 'ios' ?
|
|
|
|
|
|
<ListView
|
|
|
ref={(c) => {
|
|
|
this.listView = c;
|
...
|
...
|
@@ -463,6 +467,35 @@ export default class Home extends Component { |
|
|
}}
|
|
|
renderFooter={this._renderFooter}
|
|
|
/>
|
|
|
:
|
|
|
<ListView
|
|
|
ref={(c) => {
|
|
|
this.listView = c;
|
|
|
}}
|
|
|
contentContainerStyle={styles.contentContainer}
|
|
|
dataSource={this.dataSource.cloneWithRowsAndSections(dataSource)}
|
|
|
renderRow={this._renderRow}
|
|
|
renderSectionHeader={this._renderSectionHeader}
|
|
|
removeClippedSubviews={true}
|
|
|
enableEmptySections={true}
|
|
|
enablePullToRefresh={true}
|
|
|
isOnPullToRefresh={isPullToRefresh}
|
|
|
refreshControl={
|
|
|
<RefreshControl
|
|
|
refreshing={false}
|
|
|
onRefresh={() => {
|
|
|
this.props.onRefresh && this.props.onRefresh();
|
|
|
}}
|
|
|
colors={['#000000', '#ff0000']}
|
|
|
progressBackgroundColor="#ffffff"
|
|
|
/>
|
|
|
}
|
|
|
onEndReached={() => {
|
|
|
this.props.onEndReached && this.props.onEndReached();
|
|
|
}}
|
|
|
renderFooter={this._renderFooter}
|
|
|
/>
|
|
|
}
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|