INNER CODE UNIT · JavaScript
tabList
Trixieapp/react-virgin · TrixieUiKit/components/bottomNav.js:28
const tabList = routes.map((route, index) => {
const focused = index === navigation.state.index
const scene = { route, index, focused }
const label = getLabel({ ...scene })
const icon = renderIcon({ ...scene })
const onPress = getOnPress(scene)
/* eslint-disable arrow-body-style */
return (
<TouchableHighlight
style={componentStyle.footer}
onPress={() => {
return onPress ? onPress(scene, jumpToIndex) : jumpToIndex(index)
}}
key={`tab-${route.key}`}
underlayColor="#f1f1f1"
>
<View>
{icon}