2022-12-17 08:35:37 -07:00
|
|
|
#import "AppDelegate.h"
|
|
|
|
|
|
|
|
#import <React/RCTBundleURLProvider.h>
|
|
|
|
|
|
|
|
@implementation AppDelegate
|
|
|
|
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
|
|
{
|
2023-09-28 00:25:13 -06:00
|
|
|
self.moduleName = @"VideoPlayer";
|
|
|
|
// You can add your custom initial props in the dictionary below.
|
|
|
|
// They will be passed down to the ViewController used by React Native.
|
|
|
|
self.initialProps = @{};
|
2022-12-17 08:35:37 -07:00
|
|
|
|
2023-09-28 00:25:13 -06:00
|
|
|
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
2022-12-17 08:35:37 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
2024-01-10 00:45:37 -07:00
|
|
|
{
|
2024-03-07 08:00:00 -07:00
|
|
|
return [self bundleURL];
|
2024-01-10 00:45:37 -07:00
|
|
|
}
|
|
|
|
|
2024-03-07 08:00:00 -07:00
|
|
|
- (NSURL *)bundleURL
|
2022-12-17 08:35:37 -07:00
|
|
|
{
|
|
|
|
#if DEBUG
|
2023-03-09 19:15:02 -07:00
|
|
|
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"src/index"];
|
2022-12-17 08:35:37 -07:00
|
|
|
#else
|
|
|
|
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|