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

[dev-launcher] Fix launcher bridge not filtering modules #26332

Merged
merged 2 commits into from Jan 9, 2024

Conversation

gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Jan 9, 2024

Why

Closes ENG-11046
Closes #26298

How

Overwrite EXDevLauncherBridgeDelegate createBridgeWithDelegate method to ensure we use EXDevLauncherRCTBridge instead of the standard RCTBridge for the launcher, preventing native modules like RealmJS from getting wrongly initialized.

Test Plan

Temporarily added realm to bare-expo and fabric-tester

Checklist

Copy link

linear bot commented Jan 9, 2024

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Jan 9, 2024
Copy link
Contributor

@Kudo Kudo 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 the problem

@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Jan 9, 2024
@gabrieldonadel gabrieldonadel merged commit 54108e2 into main Jan 9, 2024
9 checks passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/fix-dev-launcher-bridge branch January 9, 2024 20:10
gabrieldonadel added a commit that referenced this pull request Jan 9, 2024
# Why

Closes ENG-11046
Closes #26298

# How

Overwrite `EXDevLauncherBridgeDelegate` `createBridgeWithDelegate`
method to ensure we use `EXDevLauncherRCTBridge` instead of the standard
`RCTBridge` for the launcher, preventing native modules like RealmJS
from getting wrongly initialized.


# Test Plan

Temporarily added `realm` to bare-expo and fabric-tester 

# Checklist


- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
@brentvatne brentvatne added the published Changes from the PR have been published to npm label Jan 10, 2024
onizam95 pushed a commit to onizam95/expo-av-drm that referenced this pull request Jan 15, 2024
# Why

Closes ENG-11046
Closes expo#26298

# How

Overwrite `EXDevLauncherBridgeDelegate` `createBridgeWithDelegate`
method to ensure we use `EXDevLauncherRCTBridge` instead of the standard
`RCTBridge` for the launcher, preventing native modules like RealmJS
from getting wrongly initialized.


# Test Plan

Temporarily added `realm` to bare-expo and fabric-tester 

# Checklist


- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS device builds using the expo-dev-client and realm stall on bundling
4 participants