-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Install Fabric UIManager before main bundle execution
Summary: Changelog: [Internal] Fix install Fabric UIManager before main bundle execution in Bridgeless In iOS, fixed Bridgeless so that [UIManagerBinding::createAndInstallIfNeeded](https://github.com/facebook/react-native/blob/ce50c43986bae05ad62552be46f4d5bb4a46f097/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp#L24-L41) happens BEFORE the JS main bundle is evaluated. Logic is unchanged in Android. # Before ``` > UI [FBReactModule.mm:325] Initializing FBReactModule: start. > UI [FBReactModule.mm:524] Initializing FBReactModule: end. > UI [FBReactModule.mm:1839] Initializing RCTHost: start. > UI [FBReactModule.mm:1891] Initializing RCTHost: end. > UI[-[FBNavigationControllerObserver navigationController:willShowViewController:animated:]] <FBNewNavigationController: 0x7fd0e7859400> will show <FBReactRootViewController: 0x7fd0e7161a00; react_GemstoneHomeRoute> (animated: 1) > VJCPP ****** ReactInstance loadScript -> evaluateJavaScript start <--- loads Main Bundle > UI[-[FBNavigationControllerObserver navigationController:didShowViewController:animated:]] <FBNewNavigationController: 0x7fd0e7859400> did show <FBReactRootViewController: 0x7fd0e7161a00; react_GemstoneHomeRoute> (animated: 1) > VJCPP ****** ReactInstance loadScript -> evaluateJavaScript end > VJCPP ****** UIManagerBinding createAndInstallIfNeeded <--- should happen BEFORE evaluateJavaScript ``` Reviewed By: RSNara Differential Revision: D39493654 fbshipit-source-id: 4491d6de110966b2eb4f554ff4db8548899020e3
- Loading branch information
1 parent
e2028a8
commit 447be62
Showing
6 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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