diff --git a/InvertibleScrollView.js b/InvertibleScrollView.js index db1ba0f..ad5bb54 100644 --- a/InvertibleScrollView.js +++ b/InvertibleScrollView.js @@ -57,7 +57,7 @@ let InvertibleScrollView = React.createClass({ } return cloneReferencedElement(renderScrollComponent(props), { - ref: component => { this._scrollComponent = component; }, + ref: component => { if (component) this._scrollComponent = component; }, }); },