react-native-android-kit icon indicating copy to clipboard operation
react-native-android-kit copied to clipboard

Programmatically set the current active tab in TabLayoutAndroid?

Open tituswoo opened this issue 8 years ago • 1 comments

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! :)

tituswoo avatar Jul 25 '16 00:07 tituswoo

Hello @tituswoo,

Thank you for your feedback. Yes this approach is quite interesting. For next release (after holidays), it will be implemented :)

adbayb avatar Jul 27 '16 16:07 adbayb