Skip to content

Conversation

@joshkeldam
Copy link
Contributor

Summary

Fixes #481

The TabInfo data class was missing badgeBackgroundColor and badgeTextColor properties that RCTTabView.kt expects when applying badge colors.

This caused Android builds to fail with:

e: RCTTabView.kt:260:48 Unresolved reference 'badgeBackgroundColor'.
e: RCTTabView.kt:272:48 Unresolved reference 'badgeTextColor'.
e: RCTTabView.kt:266:48 Unresolved reference 'colorError'.

Changes

  • Add badgeBackgroundColor and badgeTextColor properties to TabInfo data class
  • Populate them from JS bridge in setItems()
  • Simplify badge color application to let Material use default theme colors when custom colors are not provided (avoids colorError resolution issues with some Material library versions)

Test Plan

  • Tested on React Native 0.82.1
  • Android build now succeeds
  • Badge colors work when provided
  • Badge uses Material default colors when not customized

…TabInfo

The TabInfo data class was missing badgeBackgroundColor and badgeTextColor
properties that RCTTabView.kt expects when applying badge colors.

This caused Android builds to fail with:
- Unresolved reference 'badgeBackgroundColor'
- Unresolved reference 'badgeTextColor'
- Unresolved reference 'colorError'

Changes:
- Add badgeBackgroundColor and badgeTextColor properties to TabInfo data class
- Populate them from JS bridge in setItems()
- Simplify badge color application to let Material use default theme colors
  when custom colors are not provided (avoids colorError resolution issues)

Fixes callstackincubator#481
@changeset-bot
Copy link

changeset-bot bot commented Dec 1, 2025

🦋 Changeset detected

Latest commit: 3e269c1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
react-native-bottom-tabs Patch
@bottom-tabs/expo-template Patch
@bottom-tabs/react-navigation Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@prateekchachra-aily
Copy link
Contributor

Thank you! This error wasn't appearing for me on build

Copy link
Collaborator

@okwasniewski okwasniewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing it!

@okwasniewski
Copy link
Collaborator

Thank you! This error wasn't appearing for me on build

Yeah.. weird it wasn't caught by the CI.

@okwasniewski okwasniewski merged commit 2b70882 into callstackincubator:main Dec 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] Build fails with Unresolved reference 'badgeBackgroundColor' in v1.0.4

3 participants