From 834bd5b98bd55b9ce09e3afd3583542e551d2017 Mon Sep 17 00:00:00 2001 From: Colby Stauss Date: Thu, 6 Aug 2020 18:11:44 -0500 Subject: [PATCH] [fix] Animated getScrollableNode check Close #1695 Fix #1680 --- .../src/vendor/react-native/Animated/createAnimatedComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-web/src/vendor/react-native/Animated/createAnimatedComponent.js b/packages/react-native-web/src/vendor/react-native/Animated/createAnimatedComponent.js index 82faaadc..db7657aa 100644 --- a/packages/react-native-web/src/vendor/react-native/Animated/createAnimatedComponent.js +++ b/packages/react-native-web/src/vendor/react-native/Animated/createAnimatedComponent.js @@ -58,7 +58,7 @@ function createAnimatedComponent(Component: any, defaultProps: any): any { _attachNativeEvents() { // Make sure to get the scrollable node for components that implement // `ScrollResponder.Mixin`. - const scrollableNode = this._component.getScrollableNode + const scrollableNode = this._component && this._component.getScrollableNode ? this._component.getScrollableNode() : this._component;