Closed mvantellingen closed 8 years ago
This allows the following constructs:
return (
<TabNavigator>
// Other TabNavigator.Item
{(() => {
if (debug) {
return (
<TabNavigator.Item title="Debug">
<Debug navigator={navigator}/>
</TabNavigator.Item>
)
}
})()}
</TabNavigator>
)
Published in 0.3.3.
This allows you to render tab items conditonally since the false condition returns null in that case.