ptomasroos / react-native-scrollable-tab-view

Tabbed navigation that you can swipe between, each tab can have its own ScrollView and maintain its own scroll position between swipes. Pleasantly animated. Customizable tab bar
https://www.npmjs.com/package/react-native-scrollable-tab-view
6.94k stars 2.28k forks source link

Error "this.scrollView.scrollTo is not a function" after commit with getNode() removed #1101

Open zmnv opened 4 years ago

zmnv commented 4 years ago

Steps to Reproduce

Nothing changed in my component with scrollable tab. But after last time I did pull it happens. I talk about #1090 commit.

Expected Behavior

All right.

Actual Behavior

Application crashes with

this.scrollView.scrollTo is not a function. (In 'this.scrollView.scrollTo({x:n,y:0,animated:!this.props.scrollWithoutAnimation})', 'this.scrollView.scrollTo' is undefined)
zmnv commented 4 years ago

I use a git version because last release was IN 2019. 1.0.0 has fatal error because of RNViewPager...

ejdigby commented 4 years ago

Could you try upgrading your react native version to the latest?

zmnv commented 4 years ago

No. It's not a solution. I can do that only in future. :(

If you/they wouldn't support RN versions < 0.62 you can close the issue, but please, add attention about it in README.MD. I just forked that awesome module as a temporary solution )

brambang commented 4 years ago

Could you try upgrading your react native version to the latest?

so we MUST (force to) using RN 0.62 to using this?????? i think it was bad implementation. because many people using Expo, and latest Expo SDK it is 0.61.4 (mine now).

Im happy used your library, but this made me cannot used that anymore

deot commented 4 years ago

1085

usamaehsan commented 4 years ago

@brambang have you found any solution ? i am also using expo

brambang commented 3 years ago

@brambang have you found any solution ? i am also using expo

you can found my solution here sorry for late reply