Bottom tabbar icons not showing up
See original GitHub issueVersion
- “react-native-router-flux”: “^4.0.0-beta.28”,
- “react-native”: “^0.54.0”,
- “react”: “^16.3.0-alpha.1”,
Expected behavior
Icons should show up
Actual behavior
Icons not showing up
I updated to the latest version of react-native and the icons are not showing up here is my current code
Index
<Tabs key="tabbar" swipeEnabled={false} showLabel={true} lazy={true} showIcon={true} tabBarPosition="bottom" activeBackgroundColor="#25abf9" inactiveBackgroundColor="#30393F" inactiveTintColor="#ffffff" activeTintColor="#ffffff" tabBarStyle={{height:55}}>
<Stack key="main" title="Photos" tabBarLabel="Photos" inactiveBackgroundColor="#30393F" activeBackgroundColor="#25abf9" icon={PhotosTabIcon} titleStyle={{ color: 'white', alignSelf: 'center'}}>
<Scene key='photos' type={Actions.RESET} component={Photos} title={'Home'} initial={false} navBar={CustomNavBar} />
<Scene key='singlePhoto' component={SinglePhoto} title={'Photo'} photoDate={null} initial={false} navBar={CustomNavBarPhotos} hideTabBar/>
<Scene key='photoUpload' component={PhotoUpload} title='Upload Photo' photoDate={null} initial={false} navBar={CustomNavBarUpload} hideTabBar />
<Scene key='sync' component={Sync} title='Syncing Data' initial={false} hideTabBar hideNavBar />
<Scene key='offlineMode' component={OfflineMode} title='Offline' initial={false} navBar={CustomNavBar} hideTabBar />
<Scene key='compressionMode' component={CompressionMode} title='Compressing Video' initial={false} hideTabBar hideNavBar />
</Stack>
<Stack key="apps" title="Templates" tabBarLabel="Apps" inactiveBackgroundColor="#30393F" activeBackgroundColor="#25abf9" icon={AppsTabIcon} titleStyle={{ color: 'white', alignSelf: 'center' }}>
<Scene key='Apps' type={Actions.RESET} component={AppsTempWebView} title='Templates' initial={false} navBar={CustomNavBarApps} />
</Stack>
</Tabs>
PhotosTabIcon
import React from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'react-native-elements';
const propTypes = {
selected: PropTypes.bool,
name: PropTypes.string,
};
const PhotosTabIcon = () => {
return <Icon name='camera' size={28} type={"font-awesome"} color={'white'} />
};
PhotosTabIcon.propTypes = propTypes;
export default PhotosTabIcon;
Issue Analytics
- State:
- Created 6 years ago
- Comments:44 (7 by maintainers)
Top Results From Across the Web
Tab bar not showing icons? - Stack Overflow
Select bottom bar in Navigation Controller -> open Attribute Inspector in Utilities -> provide the your title and image as highlighted in image....
Read more >Bottom Tab Navigator not showing icons in React ... - GitHub
I'm trying to use icons, from React Native Vector Icons, in the bottom tab navigator. But the icons are not being rendered in...
Read more >Bottom Tabs Navigator | React Navigation
A simple tab bar on the bottom of the screen that lets you switch between different routes. Routes are lazily initialized -- their...
Read more >How to Add Icons at the Bottom of Tab Navigation in React ...
How to Add Icons at the Bottom of Tab Navigation in React Native ? ; Step 1: Open your terminal and install expo-cli...
Read more >Bottom navigation - Material Design
Bottom navigation bar showing 4 destinations with icons and labels. ... When you select a bottom navigation item (one that's not currently selected), ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@avishayil , My scene looks like:
And My TabIcon component looks like:
I use Expo and I just upgraded to Expo 26 and faced this issue, just set height, width manually as @ovaris said
`
`
I did not find anything about iconName prop in the docs but its their