Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabBarBadgeStyle prop doesn't work #11809

Closed
3 of 11 tasks
tannerschmutte opened this issue Feb 2, 2024 · 6 comments
Closed
3 of 11 tasks

tabBarBadgeStyle prop doesn't work #11809

tannerschmutte opened this issue Feb 2, 2024 · 6 comments

Comments

@tannerschmutte
Copy link

tannerschmutte commented Feb 2, 2024

Current behavior

the tabBarBadge remains ugly red no matter what I do.

Expected behavior

allow the tabBarBadge to be styled

Reproduction

https://snack.expo.dev/@inpubliq/55a5c4?platform=ios

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/material-bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view

Environment

{
"dependencies": {
"@expo/vector-icons": "^13.0.0",
"@react-navigation/material-bottom-tabs": "^6.2.12",
"react-native-paper": "^5.1.4",
"react-native-safe-area-context": "4.6.3",
"@react-navigation/native": "^5"
}
}

Copy link

github-actions bot commented Feb 2, 2024

Couldn't find version numbers for the following packages in the issue:

  • @react-navigation/native

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

Copy link

github-actions bot commented Feb 2, 2024

Couldn't find version numbers for the following packages in the issue:

  • @react-navigation/native
  • @react-navigation/bottom-tabs

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

@zouhairgharsa
Copy link

try this options={({ }) => ({
tabBarBadge: "Why I'm not green?",
tabBarBadgeStyle: { backgroundColor: "green" },
})}

@tannerschmutte
Copy link
Author

hi zouhairgharsa, that has no effect either. did you even try to get it to work doing that?

Copy link

github-actions bot commented Feb 6, 2024

Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.

@satya164
Copy link
Member

satya164 commented Feb 6, 2024

https://reactnavigation.org/docs/material-bottom-tab-navigator/

The material-bottom-tabs navigator is moved to react-native-paper. Refer to react-native-paper's documentation instead for installation instructions, usage guide and API reference. For any issues with the navigator, please open an issue in react-native-paper's repository.

@satya164 satya164 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants