Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-arc committed Sep 7, 2018
2 parents 39b8c07 + 0a0427d commit c697cc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ export default class Carousel extends Component {
return;
}

value = value && scrollEnabled
// 'setNativeProps()' is used instead of 'setState()' because the latter
// really takes a toll on Android behavior when momentum is disabled
wrappedRef.setNativeProps({ scrollEnabled: value });
Expand Down

0 comments on commit c697cc1

Please sign in to comment.