From 9baa1391ca54d321a9717514adfbae25f9984bf1 Mon Sep 17 00:00:00 2001 From: Sunbreak Date: Fri, 10 Mar 2023 10:15:02 +0800 Subject: [PATCH] fix: update debug JSBundle name & rootView component --- examples/basic/ios/videoplayer/AppDelegate.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/basic/ios/videoplayer/AppDelegate.mm b/examples/basic/ios/videoplayer/AppDelegate.mm index f06f3669..e263372b 100644 --- a/examples/basic/ios/videoplayer/AppDelegate.mm +++ b/examples/basic/ios/videoplayer/AppDelegate.mm @@ -44,7 +44,7 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot"; #endif NSDictionary *initProps = [self prepareInitialProps]; - UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"videoplayer", initProps); + UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"VideoPlayer", initProps); if (@available(iOS 13.0, *)) { rootView.backgroundColor = [UIColor systemBackgroundColor]; @@ -85,7 +85,7 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot"; - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG - return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"src/index"]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif