How to hide tabbar item in tabs
See original GitHub issueVersion
- react-native-router-flux v4.0.0 (v3 is not supported)
- react-native v0.45.1
Expected behaviour
Actual behaviour
Steps to reproduce
In v3.0, I can create a scene without icon and tabContent, it will not show in tabbar, but in v4.0.0, it will show an tab item with empty label and empty icon.
<Scene key="main" initial={true} tabs={true} >
<Scene key="Home" component={Home} title={'TITLE'} />
<Scene
key="HotNews1"
text="hotNews_title"
icon={TabIcon}
component={HotNewsPage}
tabContent={{
iconSource: ICON_1,
selectedIconSource: SL_ICON_1
}} />
<Scene
key="HotNews2"
text="hotNews_title"
icon={TabIcon}
component={HotNewsPage}
tabContent={{
iconSource: ICON_1,
selectedIconSource: SL_ICON_1
}} />
</Scene>
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
How to hide the tab bar when a view controller is shown
If you don't want that behavior, you should set hidesBottomBarWhenPushed to true where applicable. This will hide the tab bar along with any ......
Read more >How To Hide The Tab Bar When Showing A New View ...
Luckily, there is an easy way to elegantly hide the tab bar using the hidesBottomBarWhenPushed property that every view controller has.
Read more >How to hide TabBarController programmatically in Swift?
One of another way to hide tab bar without writing a line of code is from storyboard or Xib. open storyboard/Xib and select...
Read more >Hiding tab bar in specific screens
Hiding tab bar in specific screens ... With this structure, when we navigate to the Profile or Settings screen, the tab bar will...
Read more >App Shell : Hide TabBar element without disabling it
App Shell : Hide TabBar element without disabling it ; Route · "CharacterSelectionPage" IsVisible · "False" ContentTemplate="{DataTemplate local: ...
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
import { StatusBar} from 'react-native';
at top of your file and in your render() function<StatusBar hidden={true} />
should work@RobinJayaswal No, I don’t use react-navigation, here is the code:
TabBar is a React.Component