ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 415 forks source link

Right way to style the badge? #46

Closed CodingSam closed 6 years ago

CodingSam commented 8 years ago

The way I am now doing this now is:

Import the Badge module import Badge from './node_modules/react-native-tab-navigator/Badge';

In the TabNavigator.Item I add it int the renderBadge function like this: <TabNavigator.Item renderBadge={() => <Badge style={styles.tabBarBadge}>1</Badge>} </TabNavigator.Item>

Would it be possible to expose the Badge in the TabNavigator? Like the TabNavigator.Item

dovfrank commented 8 years ago

I'm doing the same...

ide commented 8 years ago

The default badge is something we don't want to expose as a public API. If you like the way it looks, I recommend you copy & paste the code.

ptomasroos commented 6 years ago

Will close since this issue is more than a year, feel free to a open a new if this is still a issue.