Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Fix getScrollResponder() function which is not working in react-native 0.62
  • Loading branch information
Kristian Meldgaard authored Aug 27, 2020
1 parent e68faeb commit acff3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class ParallaxScrollView extends Component {
* Expose `ScrollView` API so this component is composable with any component that expects a `ScrollView`.
*/
getScrollResponder() {
return this.refs[SCROLLVIEW_REF]._component.getScrollResponder()
return this.refs[SCROLLVIEW_REF].getScrollResponder()
}
getScrollableNode() {
return this.getScrollResponder().getScrollableNode()
Expand Down

0 comments on commit acff3f1

Please sign in to comment.