NativeBase
NativeBase copied to clipboard
Listener for Tabs
Hi guys! There's any way to fire an event when a tab is selected?
I tried with componentDidMount but it only fires once.. (I need to handle several tab changes)
Thanks!
<Tabs onChangeTab={(i, ref)=> console.log(i)}>
You can use the onChangeTab callback.
Please add this to docs as well.
the right is <Tabs onChangeTab={({ i, ref, from })=> console.log(i)}>
my app crashes when i call setState with onChangeTab.
@rubinjohny same issue. https://github.com/GeekyAnts/NativeBase/issues/2359