Repository navigation
Conversation
…ew arch RN 0.89 removed the RCTBridge (RCTTurboModule) jsCallInvoker declaration from ReactCommon/RCTTurboModule.h, so new-architecture builds failed with "property 'jsCallInvoker' not found on object of type 'RCTBridge *'" in ScriptManager.mm. Re.Pack declared the method only inside #ifndef RCT_NEW_ARCH_ENABLED; move it into a Re.Pack-specific category (RCTBridge (JSICallInvoker)) available on both architectures, mirroring the existing RCTBridge (JSIRuntime) category. Option A from callstack#1528.
|
@Goldloli is attempting to deploy a commit to the Callstack Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: 92f5cea The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
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 |
This branch has not been deployed
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 #1528
React Native 0.89 removed the
RCTBridge (RCTTurboModule)category that declaredjsCallInvokerinReactCommon/RCTTurboModule.h. Re.Pack declared that method itself only for the old architecture (inside#ifndef RCT_NEW_ARCH_ENABLEDinScriptManager.mm), so new-architecture builds on RN 0.89 fail with:This moves the declaration out of the old-architecture-only block and puts it under a Re.Pack-specific category,
RCTBridge (JSICallInvoker), mirroring the existingRCTBridge (JSIRuntime)category already used forruntimein the same file:react-native >= 0.74) with no version checks: on older RN versions the duplicate declaration in our own category is harmless, and it avoids shadowing RN'sRCTBridge (RCTTurboModule)category name.This is Option A from #1528 — the minimal unblocker. Option B (migrating to
RCTCallInvokerModule/RuntimeExecutorbefore RN removes the proxy methods) stays open as a follow-up.Changes
packages/repack/ios/ScriptManager.mm: declarejsCallInvokerin a newRCTBridge (JSICallInvoker)category, available on both architectures, instead of the old-architecture-only#ifndefblock.Test plan
Reproduced the failure with the current
mainin a minimal React Native0.89.0-rc.3app (new architecture on by default) with@callstack/repackinstalled from a local checkout and autolinked byuse_native_modules!. Building thecallstack-repackpod target fails with the exact error above:With this change, the same target builds successfully in the same app (only
ScriptManager.mmchanged,** BUILD SUCCEEDED **).No changes to Android, JS, or the public API surface.