Skip to content

Commit 4b90371

Browse files
resolve undefined issue for _component
Fix : undefined is not an object (evaluating 'this.refs[SCROLLVIEW_REF]._component.getScrollResponder') i6mi6#150
1 parent e68faeb commit 4b90371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class ParallaxScrollView extends Component {
157157
* Expose `ScrollView` API so this component is composable with any component that expects a `ScrollView`.
158158
*/
159159
getScrollResponder() {
160-
return this.refs[SCROLLVIEW_REF]._component.getScrollResponder()
160+
return this.refs[SCROLLVIEW_REF].getScrollResponder()
161161
}
162162
getScrollableNode() {
163163
return this.getScrollResponder().getScrollableNode()

0 commit comments

Comments
 (0)