react-native-android-kit
react-native-android-kit copied to clipboard
Programmatically set the current active tab in TabLayoutAndroid?
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! :)
Hello @tituswoo,
Thank you for your feedback. Yes this approach is quite interesting. For next release (after holidays), it will be implemented :)