-
Notifications
You must be signed in to change notification settings - Fork 7
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
[0.74] fix(iOS): add missing forward blocks to RCTRootViewFactory #177
Comments
Merged ✅ |
Reverted ❗This change appeared to break iOS tests ( |
Also @Kudo @okwasniewski |
Ugh, sorry - I'll try to figure out what's wrong with this tomorrow |
apologize for not checking correctly. we should dynamically override otherwise, we could just skip the |
Hey @Kudo, I've opened a PR to remove those blocks for now - it's better to at least have support for the basic ones like ( |
Makes sense 👍 Also @cipolleschi can help here once he's back |
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: #43656 Test Plan: CI Green Reviewed By: rshest Differential Revision: D55485094 Pulled By: cortinico fbshipit-source-id: 1e391e0795c3d99686f2805165f64a7715b013f6
Target Branch(es)
0.74
Link to commit or PR to be picked
facebook/react-native#43638
Description
fix RCTRootViewFactory regression. the pr is already based on 0.74-stable and cherry-pick two fixes that recommended here
The text was updated successfully, but these errors were encountered: