Style Tabbar with Icons
See original GitHub issueHi, I have a Tabbar with icons and Text i am facing 2 problems: 1-Text doesn’t go to the bottom of the icon 2-ActiveTabStyle doesn’t apply on tabs so i can’t style my tabs her is my code `
<Tabs tabBarPosition = "bottom" {...tabProps}>
<Tab heading = {<TabHeading>
<Icon name="home"/>
<Text>Acheter</Text>
</TabHeading>}
tabStyle = {{backgroundColor: 'transparent'}}
activeTabStyle = {{backgroundColor: 'transparent'}}
activeTextStyle = {{fontWeight:'bold', color: '#651FFF', fontSize:17}}
textStyle = {{color: '#7C4DFF', fontWeight: 'bold', fontSize:16}}
>
<ProduitsScene style ={{ marginTop: -2}}/>
</Tab>
<Tab heading = {<TabHeading><Icon name="briefcase"/></TabHeading>}>
</Tab>
<Tab heading = {<TabHeading><Icon name="ios-menu-outline"/></TabHeading>}>
</Tab>
<Tab heading = {<TabHeading><Icon name="ios-compass-outline"/></TabHeading>}>
</Tab>
<Tab heading = {<TabHeading><Icon name="person"/></TabHeading>}>
</Tab>
</Tabs>
`
her is a screen of my tabs
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (2 by maintainers)
Top Results From Across the Web
React Native: Tab bar is customizable | by Alex Melnyk
A few days ago I found a simple but complicated gif from UX Planet post with a customized TabBar it was inspired me...
Read more >How to make the overflow of tab bar icon clickable in react ...
The Problem: The Red icon is only clickable within the tab bar range, once i have crossed the grey line of the tab...
Read more >How to Create a Custom Tab Bar in React Native - Crowdbotics
At this point, we haven't added any custom styles to the tab bar, so it has a default style from the React Navigation...
Read more >Bottom Tabs Navigator | React Navigation
A simple tab bar on the bottom of the screen that lets you switch between different routes. ... tabBarBadgeStyle . Style for the...
Read more >Tab bars - Navigation and search - Human Interface Guidelines
A screenshot of the Photos app on an iPhone in landscape orientation. Each tab in. If you need to create custom tab bar...
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
try
<TabHeading style={{ flexDirection: 'column' }}><Icon name="briefcase"/><Text>Tab Text</Text></TabHeading>
@PdxMehmet @Elitebigboss90 posting code for the common case without
<TabHeading/>
Code
Gif
handling style programmatically while using
<Tabheading/>
Code
Gif