...
|
...
|
@@ -23,14 +23,13 @@ export default class BrandSwiper extends React.Component { |
|
|
|
|
|
this.dot = <View
|
|
|
style={{
|
|
|
backgroundColor:'rgba(0,0,0,.2)',
|
|
|
backgroundColor:'rgba(255,255,255,.5)',
|
|
|
width: 6,
|
|
|
height: 6,
|
|
|
borderRadius: 3,
|
|
|
marginLeft: 3,
|
|
|
marginRight: 3,
|
|
|
marginTop: (Platform.OS === 'ios')?3:1,
|
|
|
marginBottom: 0,
|
|
|
marginTop: (Platform.OS === 'ios')?0:1,
|
|
|
}}
|
|
|
/>;
|
|
|
this.activeDot = <View
|
...
|
...
|
@@ -41,8 +40,7 @@ export default class BrandSwiper extends React.Component { |
|
|
borderRadius: 3,
|
|
|
marginLeft: 3,
|
|
|
marginRight: 3,
|
|
|
marginTop: 3,
|
|
|
marginBottom: 0,
|
|
|
marginTop: 0,
|
|
|
}}
|
|
|
/>;
|
|
|
}
|
...
|
...
|
@@ -92,11 +90,11 @@ export default class BrandSwiper extends React.Component { |
|
|
loop={true}
|
|
|
autoplay={true}
|
|
|
autoplayTimeout={3}
|
|
|
paginationStyle={{bottom: 8}}
|
|
|
dot={this.dot}
|
|
|
activeDot={(Platform.OS === 'ios')?this.activeDot:null}
|
|
|
width={width}
|
|
|
height={height-15}
|
|
|
paginationStyle={{backgroundColor: 'rgba(0,0,0,0.2)',bottom: 10,height: 10,width: list.length * 12,borderRadius: 5,marginLeft: (width-list.length * 12)/2}}
|
|
|
>
|
|
|
{list.map((item, i) => {
|
|
|
return (
|
...
|
...
|
@@ -131,5 +129,4 @@ let styles = StyleSheet.create({ |
|
|
banner: {
|
|
|
|
|
|
},
|
|
|
|
|
|
}); |
...
|
...
|
|