Skip to content

Commit cefdcca

Browse files
author
Rodrigo Cervantes Saucedo
committed
Fixed issue with ScrollView API not working beacuse the Animated wrapper, now accesing _component ref
1 parent 8a03e85 commit cefdcca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class ParallaxScrollView extends Component {
152152
* Expose `ScrollView` API so this component is composable with any component that expects a `ScrollView`.
153153
*/
154154
getScrollResponder() {
155-
return this.refs[SCROLLVIEW_REF].getScrollResponder()
155+
return this.refs[SCROLLVIEW_REF]._component.getScrollResponder()
156156
}
157157
getScrollableNode() {
158158
return this.getScrollResponder().getScrollableNode()
@@ -172,7 +172,6 @@ class ParallaxScrollView extends Component {
172172
*/
173173

174174
_onScroll(e) {
175-
console.log('onScroll', this.scrollY)
176175
const {
177176
parallaxHeaderHeight,
178177
stickyHeaderHeight,

0 commit comments

Comments
 (0)