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

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

Closed
hyvenzhu opened this issue Jun 23, 2016 · 5 comments
Closed

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

hyvenzhu opened this issue Jun 23, 2016 · 5 comments

Comments

@hyvenzhu
Copy link

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

@skv-headless
Copy link
Collaborator

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?

@hyvenzhu
Copy link
Author

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

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

@hyvenzhu
Copy link
Author

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

@skv-headless
Copy link
Collaborator

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants