@momo-kits/carousel 0.0.39-beta → 0.0.44-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Carousel.js +6 -0
- package/package.json +1 -1
package/Carousel.js
CHANGED
|
@@ -424,6 +424,12 @@ export default class Carousel extends PureComponent {
|
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
_getWrappedRef() {
|
|
427
|
+
if (this._carouselRef && (
|
|
428
|
+
(this._needsScrollView() && this._carouselRef.scrollTo)
|
|
429
|
+
|| (!this._needsScrollView() && this._carouselRef.scrollToOffset)
|
|
430
|
+
)) {
|
|
431
|
+
return this._carouselRef;
|
|
432
|
+
}
|
|
427
433
|
// https://github.com/facebook/react-native/issues/10635
|
|
428
434
|
// https://stackoverflow.com/a/48786374/8412141
|
|
429
435
|
return this._carouselRef && this._carouselRef.getNode && this._carouselRef.getNode();
|