Authored by chenl

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

@@ -9,6 +9,8 @@ import Immutable, {Map} from 'immutable'; @@ -9,6 +9,8 @@ import Immutable, {Map} from 'immutable';
9 import YH_Image from '../../../common/components/YH_Image'; 9 import YH_Image from '../../../common/components/YH_Image';
10 import {getSlicedUrl} from '../../utils/Utils'; 10 import {getSlicedUrl} from '../../utils/Utils';
11 import DeviceInfo from 'react-native-device-info'; 11 import DeviceInfo from 'react-native-device-info';
  12 +import RecyclerSwiper from '../../../common/recycler-swiper/recyclerswiper'
  13 +
12 14
13 const { 15 const {
14 View, 16 View,
@@ -19,6 +21,8 @@ const { @@ -19,6 +21,8 @@ const {
19 Platform, 21 Platform,
20 } = ReactNative; 22 } = ReactNative;
21 23
  24 +const YH_Swiper = (Platform.OS === 'ios') ? Swiper : RecyclerSwiper;
  25 +
22 export default class BrandSwiper extends React.Component { 26 export default class BrandSwiper extends React.Component {
23 27
24 constructor(props) { 28 constructor(props) {
@@ -26,7 +30,7 @@ export default class BrandSwiper extends React.Component { @@ -26,7 +30,7 @@ export default class BrandSwiper extends React.Component {
26 30
27 this.dot = <View 31 this.dot = <View
28 style={{ 32 style={{
29 - backgroundColor:'rgba(255,255,255,.5)', 33 + backgroundColor:'rgba(237, 237, 237, 0.5)',
30 width: 6, 34 width: 6,
31 height: 6, 35 height: 6,
32 borderRadius: 3, 36 borderRadius: 3,
@@ -103,7 +107,7 @@ export default class BrandSwiper extends React.Component { @@ -103,7 +107,7 @@ export default class BrandSwiper extends React.Component {
103 } else { 107 } else {
104 return ( 108 return (
105 <View style={styles.container}> 109 <View style={styles.container}>
106 - <Swiper 110 + <YH_Swiper
107 style={styles.banner} 111 style={styles.banner}
108 showsButtons={false} 112 showsButtons={false}
109 loop={true} 113 loop={true}
@@ -133,7 +137,7 @@ export default class BrandSwiper extends React.Component { @@ -133,7 +137,7 @@ export default class BrandSwiper extends React.Component {
133 </TouchableOpacity> 137 </TouchableOpacity>
134 ); 138 );
135 })} 139 })}
136 - </Swiper> 140 + </YH_Swiper>
137 </View> 141 </View>
138 ); 142 );
139 } 143 }