diff options
Diffstat (limited to 'ios/OwynLauncherRewrite/AppDelegate.mm')
| -rw-r--r-- | ios/OwynLauncherRewrite/AppDelegate.mm | 31 |
1 files changed, 31 insertions, 0 deletions
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 <React/RCTBundleURLProvider.h> + +@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 |
