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

What’s the meaning of Prop 'Page' #320

Closed
hiphonezhu opened this Issue Jun 23, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@hiphonezhu

hiphonezhu commented Jun 23, 2016

I am confused. Is there any example to explain it?

@skv-headless

This comment has been minimized.

Collaborator

skv-headless commented Jun 23, 2016

It is an attempt to control visible tab by property. Better to use ref.goTo(page) like here https://gist.github.com/skv-headless/3a1391d3b52736e7367eb33c3bc1a52b. What do you want do to with it?

@hiphonezhu

This comment has been minimized.

hiphonezhu commented Jun 24, 2016

I known what you say. But when I tried to use 'Page', it does not seem to work well.
just like:
render() { return ( <ScrollableTabView page={2} renderTabBar={() => <DefaultTabBar/>}> ... </ScrollableTabView> ); }

@skv-headless

This comment has been minimized.

Collaborator

skv-headless commented Jun 28, 2016

Don't use it. Why do you need this property?

@hiphonezhu

This comment has been minimized.

hiphonezhu commented Jun 29, 2016

@skv-headless
What's mean 'Don't use it.', I am learning the prop, just confused

@skv-headless

This comment has been minimized.

Collaborator

skv-headless commented Jun 29, 2016

It is a legacy I would like to remove it but someone might use it. Probably in next version I'll remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment