1#import "AppDelegate.h" 2 3#import <React/RCTBundleURLProvider.h> 4 5@implementation AppDelegate 6 7- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 8{ 9 self.moduleName = @"MusicFree"; 10 // You can add your custom initial props in the dictionary below. 11 // They will be passed down to the ViewController used by React Native. 12 self.initialProps = @{}; 13 14 return [super application:application didFinishLaunchingWithOptions:launchOptions]; 15} 16 17- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 18{ 19 return [self bundleURL]; 20} 21 22- (NSURL *)bundleURL 23{ 24#if DEBUG 25 return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@".expo/.virtual-metro-entry"]; 26#else 27 return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 28#endif 29} 30 31@end 32