Skip to content

Commit

Permalink
fix(module): fix issue when snap is disabled and bump to 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-arc committed Jun 30, 2017
1 parent f98e58c commit b33bdc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v2.3.1
* Fix issue when snap is disabled

## v2.3.0
* Refactor callback handling to provide a more reliable solution when momentum is disabled
* Fix issue with parallel animations (thanks [@jnbt](https://github.com/jnbt))
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,14 +462,14 @@ export default class Carousel extends Component {
}

_onScrollEndDragDebounced (event) {
if (this._scrollview) {
if (this._scrollview && this._onScrollEnd) {
this._onScrollEnd();
}
}

// Used when `enableMomentum` is ENABLED
_onMomentumScrollEnd (event) {
if (this._scrollview) {
if (this._scrollview && this._onScrollEnd) {
this._onScrollEnd();
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-snap-carousel",
"version": "2.3.0",
"version": "2.3.1",
"description": "Swiper component for React Native with previews and snapping effect. Compatible with Android & iOS.",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit b33bdc9

Please sign in to comment.