native-base: "^2.3.1",
react: "16.0.0-alpha.12",
react-native : "0.47.1",
How do call a function when Native base Tab Component is clicked / pressed.
onPress event not working in Tab component
<Container>
<Tabs style={{}} tabBarPosition="bottom" >
<Tab style={{}} heading='Network' onPress={() => console.log("tab1")}>
</Tab>
<Tab style={{}} heading='Jobs' onPress={() => console.log("tab2")}>
</Tab>
</Tabs>
</Container>
maybe a feature needed for ANDROID
@Naveen-ICARUS you can use onChangeTab prop of <Tabs/> which can be used to detect a change in tab selection
@akhil-geekyants Thank you so much. Its what I needed.
I'll Close this issue
How can i know which tab is actived ?
@Naveen-ICARUS you can use onChangeTab prop of
which can be used to detect a change in tab selection
Would be great if this prop would be documented in the API reference, instead of needing to search Github for an answer.
How can i disable or enable a particular tab ?
Also i have the same question , how i can disable a specific tab ?
I want to change tabs to next and back by pressing button, how can I do that?
Most helpful comment
@ngoducduy https://github.com/skv-headless/react-native-scrollable-tab-view#props