Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 25.2k
feat(RCTAppDelegate): Implement RCTRootViewFactory#42263
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
Closed
okwasniewski
wants to merge
4
commits into
react:main
from
okwasniewski:refactor/RCTAppDelegate-viewWithModuleName
Uh oh!
There was an error while loading. Please reload this page.
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
94d217c
refactor: Move rootView creating logic to a separate method
okwasniewski c8188da
feat: Implement RCTRootViewFactory
okwasniewski 31aa09e
fix: change initializer for RCTRootViewFactoryConfiguration, forward …
okwasniewski f2c119a
fix: remove strong atribute from bridge and bridgeAdapter
okwasniewski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
14 changes: 6 additions & 8 deletions
14 packages/react-native/Libraries/AppDelegate/RCTAppDelegate.h
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -7,6 +7,7 @@ | ||
| #import <React/RCTBridgeDelegate.h> | ||
| #import <UIKit/UIKit.h> | ||
| #import "RCTRootViewFactory.h" | ||
| @class RCTBridge; | ||
| @protocol RCTBridgeDelegate; | ||
| @@ -57,9 +58,13 @@ NS_ASSUME_NONNULL_BEGIN | ||
| /// The window object, used to render the UViewControllers | ||
| @property (nonatomic, strong, nonnull) UIWindow *window; | ||
| @property (nonatomic, strong, nullable) RCTBridge *bridge; | ||
| @property (nonatomic, nullable) RCTBridge *bridge; | ||
| @property (nonatomic, strong, nullable) NSString *moduleName; | ||
| @property (nonatomic, strong, nullable) NSDictionary *initialProps; | ||
| @property (nonatomic, strong, nonnull) RCTRootViewFactory* rootViewFactory; | ||
| @property (nonatomic, nullable) RCTSurfacePresenterBridgeAdapter *bridgeAdapter; | ||
| /** | ||
| * It creates a `RCTBridge` using a delegate and some launch options. | ||
| @@ -126,13 +131,6 @@ NS_ASSUME_NONNULL_BEGIN | ||
| */ | ||
| - (void)setRootView:(UIView *)rootView toRootViewController:(UIViewController *)rootViewController; | ||
| /// This method controls whether the App will use RuntimeScheduler. Only applicable in the legacy architecture. | ||
| /// | ||
| /// @return: `YES` to use RuntimeScheduler, `NO` to use JavaScript scheduler. The default value is `YES`. | ||
| - (BOOL)runtimeSchedulerEnabled; | ||
okwasniewski marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| @property (nonatomic, strong) RCTSurfacePresenterBridgeAdapter *bridgeAdapter; | ||
okwasniewski marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| /// This method returns a map of Component Descriptors and Components classes that needs to be registered in the | ||
| /// new renderer. The Component Descriptor is a string which represent the name used in JS to refer to the native | ||
| /// component. The default implementation returns an empty dictionary. Subclasses can override this method to register | ||
207 changes: 48 additions & 159 deletions
207 packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm
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
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.