...
|
...
|
@@ -6,6 +6,7 @@ import Swiper from 'react-native-swiper'; |
|
|
import HeadTitleCell from '../cell/HeadTitleCell';
|
|
|
import YH_Image from '../../../common/components/YH_Image';
|
|
|
import Immutable, {Map} from 'immutable';
|
|
|
import RecyclerSwiper from '../../../common/recycler-swiper/recyclerswiper';
|
|
|
|
|
|
const {
|
|
|
View,
|
...
|
...
|
@@ -17,6 +18,8 @@ const { |
|
|
Platform,
|
|
|
} = ReactNative;
|
|
|
|
|
|
const YH_Swiper = (Platform.OS === 'ios') ? Swiper : RecyclerSwiper;
|
|
|
|
|
|
export default class TrendgoodsTopic extends React.Component {
|
|
|
|
|
|
constructor(props) {
|
...
|
...
|
@@ -84,7 +87,7 @@ export default class TrendgoodsTopic extends React.Component { |
|
|
return (
|
|
|
<View style={styles.container}>
|
|
|
<HeadTitleCell yh_exposureData={yh_exposureData_more} title={title.title} moreUrl={title.more_url} onPressTitleMore={this.props.onPressTitleMore} />
|
|
|
<Swiper
|
|
|
<YH_Swiper
|
|
|
showsButtons={false}
|
|
|
loop={true}
|
|
|
autoplay={true}
|
...
|
...
|
@@ -127,7 +130,7 @@ export default class TrendgoodsTopic extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
);
|
|
|
})}
|
|
|
</Swiper>
|
|
|
</YH_Swiper>
|
|
|
</View>
|
|
|
);
|
|
|
}
|
...
|
...
|
|