We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24da861 + 4bcbe05 commit 0e5c1d4Copy full SHA for 0e5c1d4
1 file changed
src/carousel/Carousel.js
@@ -481,6 +481,12 @@ export default class Carousel extends Component {
481
}
482
483
_getWrappedRef () {
484
+ if (this._carouselRef && (
485
+ (this._needsScrollView() && this._carouselRef.scrollTo) ||
486
+ (!this._needsScrollView() && this._carouselRef.scrollToOffset)
487
+ )) {
488
+ return this._carouselRef;
489
+ }
490
// https://github.com/facebook/react-native/issues/10635
491
// https://stackoverflow.com/a/48786374/8412141
492
return this._carouselRef && this._carouselRef.getNode && this._carouselRef.getNode();
0 commit comments