navigation icon indicating copy to clipboard operation
navigation copied to clipboard

TabBarItem font props won't work

Open belowfrog opened this issue 1 year ago • 3 comments

TabBarItem component's font-related props will not take effect if it is wrapped in another component and placed within the TabBar component.

for example:

<TabBar primary={true}>
  <WrappedTabbarItem />
</TabBar>


const WrappedTabbarItem = () => (
  <TabBarItem title="Assets" fontSize={12} fontWeight="600">
  ...
  </TabBar>
)

I suggest that it is best to place the font property on the TabBar itself because it cannot be set individually on TabBarItem and will affect each other's font properties.

<TabBar primary={true} fontSize={12} fontWeight="600">

belowfrog avatar Dec 08 '23 05:12 belowfrog