mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-25 15:42:24 +00:00
committed by
Nicolas Gallagher
parent
de2a66c694
commit
834bd5b98b
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user