Skip to content

Commit

Permalink
fix: useScrollView with object and function
Browse files Browse the repository at this point in the history
  • Loading branch information
nedeljko0 committed Sep 2, 2020
1 parent f3d3e98 commit 333e902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/carousel/Carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ export default class Carousel extends Component {
...this._getComponentStaticProps()
};

const ScrollViewComponent = typeof useScrollView === 'function' ? useScrollView : AnimatedScrollView
const ScrollViewComponent = typeof useScrollView === 'function' || typeof useScrollView === 'object' ? useScrollView : AnimatedScrollView;

return this._needsScrollView() ? (
<ScrollViewComponent {...props}>
Expand Down

0 comments on commit 333e902

Please sign in to comment.