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.93k stars 2.29k forks source link

initialPage is not working #1157

Open xizan opened 2 years ago

xizan commented 2 years ago

react-native-scrollable-tab-view v1.0.0 This initialPage is useless. You can't jump. How can i do it?

HuXin957 commented 2 years ago

附议

mhendyl commented 1 year ago

It's working fine in iOS only, not working in android

xizan commented 1 year ago

 您好!   邮件已收到、 祝您生活愉快、 谢谢! Hello! your mail is received,good luck to you.Thank you !

mhendyl commented 1 year ago

this should be able to fix this bugs:

set ref props for

<ScrollableTabView ref={(ref) => { this.scrollableTabView = ref; }}

{list}

then use setTimeOut (becaus scrollableTabView must be rendered first) setTimeout(() => { this.scrollableTabView.goToPage(index) }, 30);

ThalesBMC commented 12 months ago

this should be able to fix this bugs:

set ref props for

<ScrollableTabView ref={(ref) => { this.scrollableTabView = ref; }} > {list}

then use setTimeOut (becaus scrollableTabView must be rendered first) setTimeout(() => { this.scrollableTabView.goToPage(index) }, 30);

This solved for me

xizan commented 12 months ago

 您好!   邮件已收到、 祝您生活愉快、 谢谢! Hello! your mail is received,good luck to you.Thank you !