Is there a way to programmatically select the tab displayed in the tabnavigator by using id instead of selectedIndex?
I figured this out. Use the following code:
tb_all.selectedIndex = tb_all.getChildIndex(tb_calendar);