a fork npm from https://github.com/legeneek/react-swipe-view
npm install react-swipe-view-forkshell
npm i react-swipe-view-fork
`$3
`jsx
import SwipeView from 'react-swipe-view-fork'
{views}
`
check the demo code at example folder and effect here$3
| Property | Type | Required? | Description |
|:---|:---|:---:|:---|
| num | Number | ✓ | total number of tab view |
| tabWidth | Number | ✓ | width of each tab view |
| cur | Number | | current tab index start from 0, default 0 |
| fastSwipeTime | Number | | swipe time less then fastSwipeTime(default 300ms) will cause tab view change |
| tabChange | Function | | callback invoked when tab view changed by user's gesture (index: Number): void |
| onSwipe | Function | | callback invoked when user is sliding (isSwipe: Boolean):void, if user is sliding horizontally isSwipe is true else false |
| containerStyle | Object | | this component use display: flex to layout inner tab views, set containerStyle to change it |
| animation | Object | | define the animation props for tab transition. eg:{duration: 0.3, timing: 'ease', delay: 0}
| disableTouch | Array | | an array of dom selectors, indicate the dom not trigger touch effect. eg: ['.disabled', '.no-touch']. selector should not use ,`