# RN-Swiper 详见gitHub:https://github.com/CQKM/RN-Swiper #### ScreenShot ![image](https://github.com/CQKM/RN-Swiper/blob/master/screenshot.gif) or project/screenshot.gif #### Usage `yarn add rnezswiper` or `npm install rnezswiper` `import RNSwiper from 'rnezswiper'` ```javascript let data = 'HelloWord'.toUpperCase().split('') const { width, height } = Dimensions.get("window") // wrapStyle { }} slideStyle={styles.slideStyle} renderPagination={(index) => { // customize pagination return ( {`${index + 1}/${data.length}`} ) }} > { data.map(item => {item}) } other content const styles = StyleSheet.create({ container: { flex: 1, }, font: { color: '#fff', fontSize: 30 }, slideStyle: { height: 200, width, backgroundColor: '#7e57c2' }, }); ``` #### Properties Prop | Default | Type | Description -|-|-|- slideStyle | {} | ViewStyle | none loop | true | boolean | Set to `false` to disable continuous loop mode. autoPlay | true | boolean | Set to `true` enable auto play mode. autoPlayTimeOut | 3000 | number | auto paly delay initIndex | 0 | number | Index number of initial slide onIndexChanged | (index) => null | function | Called with the new index when the user swiped renderPagination | (index) => null | JSX | customize pagination animation | (value, toValue) => Animated | function | customize animated