import React, { Component } from 'react';
import Swiper from 'react-native-swiper';
export class Carousel extends Component {
    constructor() {
        super(...arguments);
        this.scrollBy = (index, animated) => {
            this.swiper.scrollBy(index, animated);
        };
    }
    render() {
        const { height, style, children, showsPagination, nativeOptions, loop, currentPageIndicatorColor, pageIndicatorColor } = this.props;
        const loopCopy = typeof loop === 'undefined' ? false : loop;
        return (<Swiper ref={swiper => (this.swiper = swiper)} showsPagination={showsPagination} activeDotColor={currentPageIndicatorColor} dotColor={pageIndicatorColor} height={height} style={style} bounces={true} loop={loopCopy} {...nativeOptions}>
        {children}
      </Swiper>);
    }
}
//# sourceMappingURL=Carousel.js.map