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

feat: migrate off RCTAppDelegate #106

Conversation

okwasniewski
Copy link
Contributor

Summary:

Following the work done in core: facebook/react-native#49078 which deprecated RCTAppDelegate we migrate off of it.

Why?

RCTAppDelegate introduced a strong coupling between React Native and AppDelegate pattern. From iOS 13+ there is a newer equivalent (Scene Delegate) which is not possible to achieve with the current architecture. The proposed solution involves migration to an RCTReactNativeFactory a class that encapsulates the initialization logic of React Native.

This migration will make brownfield initialization easier by making it more flexible and simpler to integrate into already established apps.

Changelog:

[IOS] [CHANGED] - Migrate off RCTAppDelegate

Test Plan:

CI Green

Copy link
Contributor

@cipolleschi cipolleschi 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 doing this!

@cipolleschi cipolleschi merged commit bc47041 into react-native-community:main Feb 18, 2025
1 check passed
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