fix: No native ExponentConstants module found#68840
Merged
Gonals merged 2 commits intoExpensify:mainfrom Aug 25, 2025
Merged
Conversation
Contributor
|
|
Gonals
approved these changes
Aug 25, 2025
Contributor
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Contributor
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.1.99-0 🚀
|
|
Hey, @martasudol. Do we need to QA this? |
Contributor
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.99-11 🚀
|
Contributor
Author
Hey @IuliiaHerets, yes, I think so. |
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.
Explanation of Change
This PR provides linking the EXConstants native module, which should resolve the console error on mobile app startup.
Fixed Issues
$#68950
Proposal: Properly link expo-constants to eliminate startup warning about missing native module
Background:
On mobile app startup, React Native relies on native modules linked via CocoaPods (iOS) or Gradle (Android) to provide access to device-specific APIs. When native modules are not linked correctly, the app may still run, but warnings in the console create uncertainty about whether essential functionality is working as intended.
Problem:
When the ExponentConstants native module is not properly linked at app startup, it triggers a persistent warning (“No native ExponentConstants module found, are you sure the expo-constants’s module is linked properly”).
Solution:
We resolved the issue by correctly linking the expo-constants native module. On iOS, this was achieved by updating the Pod dependencies (Podfile.lock reflects the change). With proper linking in place:
Tests
Run the mobile app locally and check console. On startup there should be no errors/warnings related to ExponentConstants.
Offline tests
Run the mobile app locally and check console. On startup there should be no errors/warnings related to ExponentConstants.
QA Steps
Run the mobile app locally and check console. On startup there should be no errors/warnings related to ExponentConstants.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop