Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initialPage is not working #1157

Open
xizan opened this issue Sep 30, 2021 · 6 comments
Open

initialPage is not working #1157

xizan opened this issue Sep 30, 2021 · 6 comments

Comments

@xizan
Copy link

xizan commented Sep 30, 2021

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

@HuXin957
Copy link

附议

@mhendyl
Copy link

mhendyl commented Jun 30, 2023

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

@xizan
Copy link
Author

xizan commented Jun 30, 2023 via email

@mhendyl
Copy link

mhendyl commented Jun 30, 2023

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
Copy link

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
Copy link
Author

xizan commented Aug 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants