[iOS][Android]: Support custom component for TabBarItem
See original GitHub issueCurrently, the TabBarItem only receives an image prop. I would love to have a custom component, such as an SVG icon or custom view, as oppose to an image. Is there any workaround on how this can be implemented?
Depending if this will be supported, here are some suggestions/examples
<TabBarItem title="..." badge={3} icon={() => <CustomIcon />} />
<TabBarItem
options={{
title: "...",
badge: 3,
....,
icon: ({active}: Props) => active ? <IconActive /> : <Icon />
}}
/>
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (16 by maintainers)
Top Results From Across the Web
How to control tab bar item color in Swift 4? - Apple Developer
I would like to have control over the color of a TabBar item based on some event. I have tried the following: UITabBarItem.appearance()....
Read more >Absolute positioned custom tab bar component renders ...
Using the setup below , position absolute renders the tab bar component behind the screen. The issue can be reproduced across, iOS ,...
Read more >Swift: How to execute an action when UITabBarItem is pressed
You could do make the FirstViewController implement the delegate and handle everything there. That way you wouldn't need to make any custom UITabBarController ......
Read more >Xamarin.Forms: A Better Tabbed Page Renderer
Forms applications that support custom colors and custom text. Just about every Xamarin.Forms project I start has some need for a TabbedPage ...
Read more >Displaying Badge in TabItem Header area with/without using ...
This is a custom render created to support TabbedPage and cannot be used for any other controls including the TabView. Query3: Do you...
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 Free
Top 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
No problem. And thank you once again for raising that PR to update the React Native docs!
@grahammendick yes, it may be related to react native’s treatment of pixel units vs size units. See this stackoverflow post and React Native docs.