Skip to content

Commit

Permalink
Merge branch 'master' into feature/responder-dx
Browse files Browse the repository at this point in the history
  • Loading branch information
zehfernandes authored Dec 20, 2019
2 parents 5e86c07 + 8c8a9aa commit f801a73
Show file tree
Hide file tree
Showing 5 changed files with 13,486 additions and 11,669 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,34 @@ import { CubeNavigationVertical } from 'react-native-3dcube-navigation'
| Prop | Default | Type | Description |
| :------------ |:---------------:| :---------------:| :-----|
| expandView | false | `bool` | If `true`, the view expands not showing the background |
| loop | false | `bool` | If `true`, the last face will be allowed to scroll to the first |
| scrollLockPage | null | `number` | Lock swipe to the next pages, referring the index number of the page |
| responderCaptureDx | 60 | `number` | The increment at which the responder captures the touch |
| callBackAfterSwipe | null | `function` | Callback function after release |
| callbackOnSwipe | null | `function` | Callback function on start swipe & release, callback's first argument `started` defines if it's the start of the swipe or the release |

### Events

#### callBackAfterSwipe

| Name | Type | Description |
| :---- | :------: | :--- |
| position | `number` | Position of the view. |
| index | `number` | Index of the view |

```js
callBackAfterSwipe = (position, index){

}

render(){
return (
<CubeNavigationHorizontal callBackAfterSwipe={this.callBackAfterSwipe}>
</CubeNavigationHorizontal>
);
}
```

### Methods

#### scrollTo(index, animated)
Expand Down
Loading

0 comments on commit f801a73

Please sign in to comment.