databag/app/mobile/ios/Databag/AppDelegate.mm

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-09-06 21:38:53 +00:00
#import "AppDelegate.h"
2023-02-15 19:45:36 +00:00
#import <Firebase.h>
2022-09-06 21:38:53 +00:00
#import <React/RCTBundleURLProvider.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
2022-11-07 18:29:19 +00:00
[FIRApp configure];
2023-02-15 19:45:36 +00:00
self.moduleName = @"Databag";
// 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-09-06 21:38:53 +00:00
2023-02-15 19:45:36 +00:00
return [super application:application didFinishLaunchingWithOptions:launchOptions];
2022-09-06 21:38:53 +00:00
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
2023-02-15 19:45:36 +00: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-09-06 21:38:53 +00:00
{
2023-02-15 19:45:36 +00:00
return true;
2022-09-06 21:38:53 +00:00
}
@end