Skip to content

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

Closed
@hyvenzhu

Description

@hyvenzhu

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

Activity

skv-headless

skv-headless commented on Jun 23, 2016

@skv-headless
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

hyvenzhu commented on Jun 24, 2016

@hyvenzhu
Author

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

skv-headless commented on Jun 28, 2016

@skv-headless
Collaborator

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

hyvenzhu

hyvenzhu commented on Jun 29, 2016

@hyvenzhu
Author

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

skv-headless

skv-headless commented on Jun 29, 2016

@skv-headless
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @skv-headless@hyvenzhu

        Issue actions

          What’s the meaning of Prop 'Page' · Issue #320 · ptomasroos/react-native-scrollable-tab-view