forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove loadSourceForBridge in RCTRootViewFactory (facebook#43656)
Summary: This PR removes forward declaration of `loadSourceForBridge` methods from the RCTRootViewFactory as it was causing an issue on old architecture, where the RedBox wouldn't popup when metro wasn't running. As stated by Kudo [here](reactwg/react-native-releases#177): > the problem was coming from the implementation > https://github.com/facebook/react-native/blob/00725fadff28bb3c7fed65f208e647f0dab69e75/packages/react-native/React/CxxBridge/RCTCxxBridge.mm#L519-L540 > > we should dynamically override loadSourceForBridge:onProgress:onComplete: and loadSourceForBridge:withBlock: in RCTRootViewFactory only when AppDelegate override it. one way to achieve this might be tricky that we may need to override respondsToSelector:. > > otherwise, we could just skip the loadSourceForBridge:onProgress:onComplete: and loadSourceForBridge:withBlock: support. There is no straight forward solution to implement this without some _hacks_ so I'm removing this forward block for now. ## Changelog: [IOS] [FIXED] - remove loadSourceForBridge in RCTRootViewFactory Pull Request resolved: facebook#43656 Test Plan: CI Green Reviewed By: rshest Differential Revision: D55485094 Pulled By: cortinico fbshipit-source-id: 1e391e0795c3d99686f2805165f64a7715b013f6
- Loading branch information
1 parent
c32a053
commit 0c02b26
Showing
3 changed files
with
3 additions
and
50 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