Authored by chenl

修复blk蓝点问题。review by zhuangjiajia。

... ... @@ -9,6 +9,8 @@ import Immutable, {Map} from 'immutable';
import YH_Image from '../../../common/components/YH_Image';
import {getSlicedUrl} from '../../utils/Utils';
import DeviceInfo from 'react-native-device-info';
import RecyclerSwiper from '../../../common/recycler-swiper/recyclerswiper'
const {
View,
... ... @@ -19,6 +21,8 @@ const {
Platform,
} = ReactNative;
const YH_Swiper = (Platform.OS === 'ios') ? Swiper : RecyclerSwiper;
export default class BrandSwiper extends React.Component {
constructor(props) {
... ... @@ -26,7 +30,7 @@ export default class BrandSwiper extends React.Component {
this.dot = <View
style={{
backgroundColor:'rgba(255,255,255,.5)',
backgroundColor:'rgba(237, 237, 237, 0.5)',
width: 6,
height: 6,
borderRadius: 3,
... ... @@ -103,7 +107,7 @@ export default class BrandSwiper extends React.Component {
} else {
return (
<View style={styles.container}>
<Swiper
<YH_Swiper
style={styles.banner}
showsButtons={false}
loop={true}
... ... @@ -133,7 +137,7 @@ export default class BrandSwiper extends React.Component {
</TouchableOpacity>
);
})}
</Swiper>
</YH_Swiper>
</View>
);
}
... ...