Skip to content

[Android] Cannot set custom badge color #472

@prateekchachra-aily

Description

@prateekchachra-aily

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

Image

We had a badge where the text was white and the background red, but now on android devices it looks like this.

I saw we have a property called tabBarBadge but there's no tabBarBadgeStyle (like in the react-navigation library). Could we add the styling to override the default one?

Library version

0.11.2

Environment info

React Native 0.77.2

Steps to reproduce

Reproducible sample code

<NativeBottomTabs.Screen
                key={id}
                name={tab}
                initialParams={{
                ...
                }}
                listeners={listenersMap.get(id)}
                options={{
                  tabBarLabel: "",
                  tabBarBadge: showBadge ? total + "" : undefined,
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions