0.1.0 • Published 11 months ago

@chainplatform/swiper v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Swiper

@chainplatform/swiper support react-native and react-native-web

Install

npm install @chainplatform/swiper --save

or

yarn add @chainplatform/swiper

Usage

import React from 'react';
import {Swiper} from '@chainplatform/swiper';

class App extends React.Component {

    constructor(props) {
        super(props);

        this.state = {
          
        };
    }

  render() {
    return (
      <View style={{flex:1}}>
        <Swiper
          paginationTapDisabled={true}
          disableGesture={true}
          autoplayLoopKeepAnimation={true}
          autoplayInvertDirection={false}
          autoplay={true}
          autoplayDelay={5}
          autoplayLoop={true}
          bannerWidth={200}
          bannerOnScreen={1}
          index={0}
          showPagination={true}
          paginationActiveColor={"red"}
        >
      </View>
    );
  }
}