2022-06-08 00:50:05 +02:00
|
|
|
#import "AppDelegate.h"
|
|
|
|
|
|
|
|
#import <React/RCTBundleURLProvider.h>
|
|
|
|
|
2022-06-14 03:52:40 +02:00
|
|
|
// universal links
|
|
|
|
#import <React/RCTLinkingManager.h>
|
|
|
|
|
2022-11-05 20:52:44 +01:00
|
|
|
// splash screen
|
|
|
|
#import "RNSplashScreen.h"
|
|
|
|
|
2022-06-08 00:50:05 +02:00
|
|
|
@implementation AppDelegate
|
|
|
|
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
|
|
{
|
2022-11-05 20:52:44 +01:00
|
|
|
// Show the splash screen
|
2023-01-18 03:40:02 +01:00
|
|
|
// [RNSplashScreen show];
|
2022-11-05 20:52:44 +01:00
|
|
|
|
2023-01-18 03:40:02 +01:00
|
|
|
self.moduleName = @"xyz.blueskyweb.app";
|
|
|
|
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
2022-06-08 00:50:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
|
|
|
{
|
|
|
|
#if DEBUG
|
|
|
|
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
|
|
|
#else
|
|
|
|
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2023-01-18 03:40:02 +01: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-06-08 00:50:05 +02:00
|
|
|
{
|
2023-01-18 03:40:02 +01:00
|
|
|
return true;
|
2022-06-08 00:50:05 +02:00
|
|
|
}
|
|
|
|
|
2022-06-14 03:52:40 +02:00
|
|
|
// universal links
|
|
|
|
- (BOOL)application:(UIApplication *)application
|
|
|
|
openURL:(NSURL *)url
|
|
|
|
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
|
|
|
|
{
|
|
|
|
return [RCTLinkingManager application:application openURL:url options:options];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL)application:(UIApplication *)application
|
|
|
|
continueUserActivity:(nonnull NSUserActivity *)userActivity
|
|
|
|
restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
|
|
|
|
{
|
|
|
|
return [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
|
|
|
|
}
|
|
|
|
|
2022-06-08 00:50:05 +02:00
|
|
|
@end
|