Skip to content

Programmatically set the current active tab in TabLayoutAndroid? #12

@tituswoo

Description

@tituswoo

I'm really diggin' the TabLayoutAndroid component. However, there doesn't seem to be a way to programmatically set the active tab in JS.

E.g., I would love to be able to do something along the lines of:

<TabLayoutAndroid selectedTab="kittensTab">
   <TabAndroid id="allPicturesTab" />
   <TabAndroid id="kittensTab" />
   <TabAndroid id="dogsTab" />
</TabLayoutAndroid>

Thanks again! :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions