/*
* @param:
* autoPlay: 是否自动播放;
* loop: 是否循环,无缝滚动
* ifShowMiddle: 轮播图是否从中间的索引开始
* @todo: 首页轮播图和主题适用
*/
import React, { Component } from "react";
import {
StyleSheet,
View,
Image
} from "react-native";
import Dimensions from '../utils/dimensions';
import Swiper from "react-native-swiper";
const dotRegular = ;
const dotActive = ;
export default class Swipers extends Component {
render() {
console.log(this.props)
return (
{
this.props.data.map((item, index) => {
return (
)
})
}
);
}
}
const styles = StyleSheet.create({
wrapper: {
// flex: 1,
},
slide: {
width: Dimensions.getWidth(352),
height: Dimensions.getHeight(153),
marginHorizontal: Dimensions.getDp(3),
zIndex: 1
},
img: {
width: Dimensions.getWidth(352),
height: Dimensions.getHeight(153),
borderRadius: Dimensions.getDp(10),
zIndex: 1
}
});