From 629e10e91b728c4251f1ed78a50df62820ce0dc4 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Tue, 4 Aug 2020 01:39:31 -0700 Subject: [PATCH] Fix "Cannot read property 'getNativeScrollRef' of undefined" in createAnimatedComponent Summary: Changelog: Fix "Cannot read property 'getNativeScrollRef' of undefined" error in createAnimatedComponent Reviewed By: JoshuaGross Differential Revision: D22897211 fbshipit-source-id: d4f5161ac908fd137b2332a6860e62ad1cfd8856 --- Libraries/Animated/src/createAnimatedComponent.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/Animated/src/createAnimatedComponent.js b/Libraries/Animated/src/createAnimatedComponent.js index 22d0a2f62b5126..ca6ef215c696f1 100644 --- a/Libraries/Animated/src/createAnimatedComponent.js +++ b/Libraries/Animated/src/createAnimatedComponent.js @@ -101,6 +101,7 @@ function createAnimatedComponent( this._component.getNativeScrollRef()['_internalInstanceHandle'] ?.stateNode?.canonical != null) || (this._component.getScrollResponder != null && + this._component.getScrollResponder() != null && this._component.getScrollResponder().getNativeScrollRef != null && this._component.getScrollResponder().getNativeScrollRef() != null && this._component.getScrollResponder().getNativeScrollRef()[