react-native-scrollable-tab-view icon indicating copy to clipboard operation
react-native-scrollable-tab-view copied to clipboard

initialPage is not working

Open xizan opened this issue 4 years ago • 6 comments

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

xizan avatar Sep 30 '21 03:09 xizan

附议

HuXin957 avatar Oct 19 '21 10:10 HuXin957

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

mhendyl avatar Jun 30 '23 17:06 mhendyl

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

xizan avatar Jun 30 '23 17:06 xizan

this should be able to fix this bugs:

set ref props for <ScrollableTabView>

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

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

mhendyl avatar Jun 30 '23 17:06 mhendyl

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

ThalesBMC avatar Aug 31 '23 15:08 ThalesBMC

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

xizan avatar Aug 31 '23 15:08 xizan