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:
Lorenzo Blasa
2022-09-05 04:25:50 -07:00
committed by Facebook GitHub Bot
parent 23ed745105
commit 2d4ca7003e

View File

@@ -65,8 +65,7 @@ static void InitializeFlipper(UIApplication* application) {
- (NSURL*)sourceURLForBridge:(RCTBridge*)bridge {
#if DEBUG
return
[[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"
fallbackResource:nil];
[[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"main"
withExtension:@"jsbundle"];