Nav apraksta

AppDelegate.m 823B

123456789101112131415161718192021222324252627282930313233
  1. #import "AppDelegate.h"
  2. #import <React/RCTBridge.h>
  3. #import <React/RCTBundleURLProvider.h>
  4. @interface AppDelegate () <RCTBridgeDelegate>
  5. @end
  6. @implementation AppDelegate
  7. - (void)awakeFromNib {
  8. [super awakeFromNib];
  9. _bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:nil];
  10. }
  11. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
  12. // Insert code here to initialize your application
  13. }
  14. - (void)applicationWillTerminate:(NSNotification *)aNotification {
  15. // Insert code here to tear down your application
  16. }
  17. #pragma mark - RCTBridgeDelegate Methods
  18. - (NSURL *)sourceURLForBridge:(__unused RCTBridge *)bridge {
  19. return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"example/index" fallbackResource:@"main"]; // .jsbundle;
  20. }
  21. @end