Skip to content

[LOCAL][RN][iOS][OldArch] Add missing loadFromSource method in the DefaultRNFactoryDelegate #49930

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

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

cipolleschi
Copy link
Contributor

@cipolleschi cipolleschi commented Mar 10, 2025

Summary:

This change fixes the app startup in the Old Architecture by implementing the loadSourceForBridge:onProgress:onComplete method in the RCTDefaultReactNativeFactoryDelegate object.

The method was missing here, so the Bridge was never trying to load the JS bundle from Metro, resulting in an empty app.

Changelog:

[iOS][Fixed] - Implement the loadSourceForBridge:onProgress:onComplete in the RCTDefaultReactNativeFactoryDelegate.

Test Plan:

Tested locally in RNTester by removing the method in the AppDelegate (the app was loading blank) and then moving it into the RCTDefaultReactNativeFactoryDelegate (the app was loading again).

I also tested it in a new RN App from the template, built starting from 0.79.0-rc.0

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Mar 10, 2025
@cipolleschi cipolleschi changed the base branch from main to 0.79-stable March 10, 2025 16:12
@cipolleschi cipolleschi marked this pull request as ready for review March 10, 2025 16:15
@cipolleschi cipolleschi force-pushed the cipolleschi/fix-old-arch-template branch 2 times, most recently from e724974 to 7866529 Compare March 10, 2025 16:17
@cipolleschi cipolleschi force-pushed the cipolleschi/fix-old-arch-template branch from 7866529 to 2481685 Compare March 10, 2025 16:19
@cortinico cortinico merged commit 7739615 into 0.79-stable Mar 10, 2025
68 checks passed
@cortinico cortinico moved this from Inbox to Done / Picked in React Native 0.79 Releases Mar 10, 2025
@lxr-mwhite
Copy link

Would it be possible to have this commit also merged into a new 0.78.x patch release? It appears to be missing from 0.78.1 causing a lot of issues for those who are still on the old architecture.

#50168

@cipolleschi
Copy link
Contributor Author

We already have a pick request for it: reactwg/react-native-releases#873
As soon as 0.78.2 will be released, the fix would be out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner Pick Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants