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

fix(react-native): update Turbo Module check for 0.77 #2341

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

yousif-bugsnag
Copy link
Contributor

Goal

Fixes the logic that detects whether turbo modules are enabled - previously this relied on the presence of global.__turboModuleProxy but this is no longer set in RN 0.77 bridgeless mode (the default), causing the check to fail.

Design

Update logic to check for the presence of global.RN$Bridgeless - if this is set then the app is running in bridgeless mode and turbo modules are enabled.

Testing

Covered by CI

@yousif-bugsnag yousif-bugsnag force-pushed the PLAT-13732/rn-077-turbo-module-check branch from 94f3459 to 7ee83b6 Compare February 19, 2025 11:22
Copy link

github-actions bot commented Feb 19, 2025

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 46.96 kB 14.02 kB
After 46.96 kB 14.02 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 7ee83b6

@yousif-bugsnag yousif-bugsnag marked this pull request as ready for review February 19, 2025 11:33
@yousif-bugsnag yousif-bugsnag merged commit 765ac41 into next Feb 20, 2025
136 checks passed
@yousif-bugsnag yousif-bugsnag deleted the PLAT-13732/rn-077-turbo-module-check branch February 20, 2025 09:23
@yousif-bugsnag yousif-bugsnag mentioned this pull request Mar 4, 2025
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.

2 participants