How to add icon on stand alone mode #226
Replies: 2 comments 4 replies
-
|
Hey, you can take a look at this example: https://github.com/callstackincubator/react-native-bottom-tabs/blob/7c8097ed420bf0e694507c12590315ad2a6c4950/apps/example/src/Examples/FourTabs.tsx#L20 const [routes] = useState([
{
key: 'article',
title: 'Article',
focusedIcon: require('../../assets/icons/article_dark.png'),
unfocusedIcon: require('../../assets/icons/chat_dark.png'),
badge: '!',
},
{
key: 'albums',
title: 'Albums',
focusedIcon: require('../../assets/icons/grid_dark.png'),
badge: '5',
hidden: hideOneTab,
},
{
key: 'contacts',
focusedIcon: require('../../assets/icons/person_dark.png'),
title: 'Contacts',
},
{
key: 'chat',
focusedIcon: require('../../assets/icons/chat_dark.png'),
title: 'Chat',
},
]); |
Beta Was this translation helpful? Give feedback.
-
|
const [routes] = useState([ not working |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
focusedIcon: Icon to show when tab is active
unfocusedIcon: Icon to show when tab is inactive (optional)
this very confused how to added the icon
Beta Was this translation helpful? Give feedback.
All reactions