Files
jellyfin-audio-player/ios/Fintunes/AppDelegate.m

36 lines
1.1 KiB
Mathematica
Raw Normal View History

2020-06-16 17:51:51 +02:00
#import "AppDelegate.h"
#import <React/RCTBundleURLProvider.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
2023-04-30 23:36:32 +02:00
self.moduleName = @"Fintunes";
// 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-05-04 18:28:00 +02:00
2023-04-30 23:36:32 +02:00
return [super application:application didFinishLaunchingWithOptions:launchOptions];
2020-06-16 17:51:51 +02:00
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
2022-05-04 18:28:00 +02:00
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
2020-06-16 17:51:51 +02:00
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
2023-04-30 23:36:32 +02:00
/// This method controls whether the `concurrentRoot`feature of React18 is turned on or off.
///
/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
/// @return: `true` if the `concurrentRoot` feature is enabled. Otherwise, it returns `false`.
- (BOOL)concurrentRootEnabled
2022-05-04 18:28:00 +02:00
{
2023-04-30 23:36:32 +02:00
return true;
2022-05-04 18:28:00 +02:00
}
@end