Consider the scenes below:
<Scene key='home' component={HomeComponent} hideNavBar title={'home'}/>
<Scene key="myTabBar" tabs={true} hideNavBar tabBarStyle={style.tabBarStyle}>
<Scene
key="myTab"
title="My Tab"
icon={MyTabIcon}
component={MyTabComponent} hideNavBar />
<Scene
key="myTab_1"
title="My Tab 1"
icon={MyTabIcon}
component={MyTabComponent1} hideNavBar />
</Scene>
I have two buttons in HomeComponent, Button1 and button Button2.
I want to show myTab_1
when Button1 clicked, and show myTab_2 when Button2 clicked.
How can i achieve this?