AppDelegate.mm 747 B

1234567891011121314151617181920212223242526
  1. #import "AppDelegate.h"
  2. #import <React/RCTBundleURLProvider.h>
  3. @implementation AppDelegate
  4. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  5. {
  6. self.moduleName = @"Newscout";
  7. // You can add your custom initial props in the dictionary below.
  8. // They will be passed down to the ViewController used by React Native.
  9. self.initialProps = @{};
  10. return [super application:application didFinishLaunchingWithOptions:launchOptions];
  11. }
  12. - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
  13. {
  14. #if DEBUG
  15. return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
  16. #else
  17. return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
  18. #endif
  19. }
  20. @end