Fixes RN iOS (#4053)
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/4053 Update usage of RN `RCTBundleURLProvider` `jsBundleURLForBundleRoot` API. The previous signature was removed in the current used RN version. Reference: https://github.com/facebook/react-native/blob/main/React/Base/RCTBundleURLProvider.h Reviewed By: aigoncharov Differential Revision: D39256797 fbshipit-source-id: 2074698597f691f46f6ffd2f6b569e7742d5fffc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
23ed745105
commit
2d4ca7003e
@@ -65,8 +65,7 @@ static void InitializeFlipper(UIApplication* application) {
|
|||||||
- (NSURL*)sourceURLForBridge:(RCTBridge*)bridge {
|
- (NSURL*)sourceURLForBridge:(RCTBridge*)bridge {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
return
|
return
|
||||||
[[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"
|
[[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
||||||
fallbackResource:nil];
|
|
||||||
#else
|
#else
|
||||||
return [[NSBundle mainBundle] URLForResource:@"main"
|
return [[NSBundle mainBundle] URLForResource:@"main"
|
||||||
withExtension:@"jsbundle"];
|
withExtension:@"jsbundle"];
|
||||||
|
|||||||
Reference in New Issue
Block a user