0.1.0 • Published 11 months ago
@chainplatform/swiper v0.1.0
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>
);
}
}
0.1.0
11 months ago