fix(mobile): replace abandoned react-native-navigation-bar-color#790
Open
ZeLonewolf wants to merge 1 commit into
Open
fix(mobile): replace abandoned react-native-navigation-bar-color#790ZeLonewolf wants to merge 1 commit into
ZeLonewolf wants to merge 1 commit into
Conversation
react-native-navigation-bar-color is unmaintained (last release Dec 2022) and its android/build.gradle still calls jcenter(), which Gradle 9 removed. Any consumer on React Native 0.82+ / Expo SDK 55+ therefore fails the Android build during Gradle configuration. cds-mobile only used the single changeNavigationBarColor() call. Swap it for the maintained react-native-system-navigation-bar across cds-mobile, the expo example app, and the template, and drop the local yarn patch (which only promisified the old package and did not fix the jcenter issue). Closes coinbase#789 Co-authored-by: Cursor <cursoragent@cursor.com>
Collaborator
🟡 Heimdall Review Status
🟡
|
| Code Owner | Status | Calculation | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ui-systems-eng-team |
🟡
0/1
|
Denominator calculation
|
ZeLonewolf
marked this pull request as ready for review
July 13, 2026 00:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #789.
@coinbase/cds-mobiledepends onreact-native-navigation-bar-color(peer + dev, plus the expo example app and template). That library is unmaintained — last commit and last npm release were December 2022 — and itsandroid/build.gradlestill callsjcenter(), which Gradle 9 removed. As a result, any consumer on React Native 0.82+ / Expo SDK 55+ fails the Android build during Gradle configuration withCould not find method jcenter().cds-mobile only used a single call (
changeNavigationBarColor(hex, light, animated)), so this swaps it for the maintainedreact-native-system-navigation-bar(last released Dec 2025, supports current RN).Changes
packages/mobile/src/system/AndroidNavigationBar.tsx: useSystemNavigationBar.setNavigationColor(hex, style, 'navigation').packages/mobile/package.json: swap the peer + dev dependency toreact-native-system-navigation-bar.apps/expo-app/package.json,templates/expo-app/package.json: swap the dependency.package.json+.yarn/patches/…: remove the old yarn patch (it only promisified the return value and did not address thejcenter()break).yarn.lock: regenerated.Notes
This complements the RN 0.83 peer-range work in #763 — removing this dead dependency is part of building cds-mobile cleanly on modern React Native.
Made with Cursor