AppDelegate.mm 784 B

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