aboutsummaryrefslogtreecommitdiff
path: root/ios/OwynLauncherRewrite/AppDelegate.mm
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-05-12 16:40:21 +0530
committerAkshay Nair <phenax5@gmail.com>2024-09-29 16:16:35 +0530
commit8ca8f830a09d8ff08ccb654199cb33779117cc37 (patch)
tree328fcca1e9c04338e373aa9626d0ae4eaa11cbad /ios/OwynLauncherRewrite/AppDelegate.mm
downloaddaft-launcher-8ca8f830a09d8ff08ccb654199cb33779117cc37.tar.gz
daft-launcher-8ca8f830a09d8ff08ccb654199cb33779117cc37.zip
Initial commit
Generated by react-native@0.74.1
Diffstat (limited to 'ios/OwynLauncherRewrite/AppDelegate.mm')
-rw-r--r--ios/OwynLauncherRewrite/AppDelegate.mm31
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