[fix] Animated getScrollableNode check

Close #1695
Fix #1680
This commit is contained in:
Colby Stauss
2020-08-06 18:11:44 -05:00
committed by Nicolas Gallagher
parent de2a66c694
commit 834bd5b98b
@@ -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;