123456789101112131415161718192021222324252627282930313233 |
- #import "AppDelegate.h"
-
- #import <React/RCTBridge.h>
- #import <React/RCTBundleURLProvider.h>
-
- @interface AppDelegate () <RCTBridgeDelegate>
-
- @end
-
- @implementation AppDelegate
-
- - (void)awakeFromNib {
- [super awakeFromNib];
-
- _bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:nil];
- }
-
- - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
- // Insert code here to initialize your application
- }
-
- - (void)applicationWillTerminate:(NSNotification *)aNotification {
- // Insert code here to tear down your application
- }
-
- #pragma mark - RCTBridgeDelegate Methods
-
- - (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge {
- return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"example/index" fallbackResource:@"main"]; // .jsbundle;
- }
-
- @end
|