36 lines
993 B
Mathematica
Raw Normal View History

2021-02-19 16:07:53 +01:00
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "AppDelegate.h"
2021-02-19 18:02:24 +01:00
#import <ReactNativeNavigation/ReactNativeNavigation.h>
2021-02-19 16:07:53 +01:00
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
2021-02-19 18:02:24 +01:00
[ReactNativeNavigation bootstrapWithDelegate:self launchOptions:launchOptions];
2021-02-19 16:07:53 +01:00
return YES;
}
2021-02-19 18:02:24 +01:00
- (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge {
return [ReactNativeNavigation extraModulesForBridge:bridge];
}
2021-02-19 16:07:53 +01:00
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
@end