From 8ca8f830a09d8ff08ccb654199cb33779117cc37 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 12 May 2024 16:40:21 +0530 Subject: Initial commit Generated by react-native@0.74.1 --- ios/OwynLauncherRewrite/AppDelegate.mm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ios/OwynLauncherRewrite/AppDelegate.mm (limited to 'ios/OwynLauncherRewrite/AppDelegate.mm') diff --git a/ios/OwynLauncherRewrite/AppDelegate.mm b/ios/OwynLauncherRewrite/AppDelegate.mm new file mode 100644 index 0000000..8c3a5ca --- /dev/null +++ b/ios/OwynLauncherRewrite/AppDelegate.mm @@ -0,0 +1,31 @@ +#import "AppDelegate.h" + +#import + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + self.moduleName = @"OwynLauncherRewrite"; + // You can add your custom initial props in the dictionary below. + // They will be passed down to the ViewController used by React Native. + self.initialProps = @{}; + + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge +{ + return [self bundleURL]; +} + +- (NSURL *)bundleURL +{ +#if DEBUG + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; +#else + return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; +#endif +} + +@end -- cgit v1.3.1