You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helloooo Issue:
When using ParallaxSwiper inside a GestureHanddler component from react-native-gesture-handdler (softwarmansion, reanimated)
and updating any useState hook the following error occours: TypeError: Cannot read property 'scrollTo' of undefined
Soution i found:
go to your ParallaxSwiper component page
How to: in windows: ctrl click in ParallaxSwiper on your imports section of your .js page
replace this line:
this.animatedScrollView = scrollView;
with this lines:
if(scrollView!==null){
this.animatedScrollView = scrollView;
}
why this solution:
if you crtl+F the word scrollTo you will notice the final problem points to a variable named _component, when the error occours this var is undefined, so wrapping theses guys with conditions solved the problem for me
The text was updated successfully, but these errors were encountered:
Helloooo
Issue:
When using ParallaxSwiper inside a GestureHanddler component from react-native-gesture-handdler (softwarmansion, reanimated)
and updating any useState hook the following error occours:
TypeError: Cannot read property 'scrollTo' of undefined
Soution i found:
why this solution:
if you crtl+F the word scrollTo you will notice the final problem points to a variable named _component, when the error occours this var is undefined, so wrapping theses guys with conditions solved the problem for me
The text was updated successfully, but these errors were encountered: