diff --git a/example/ios/OPSQLiteExample/AppDelegate.mm b/example/ios/OPSQLiteExample/AppDelegate.mm index c07f2788..e8d284a0 100644 --- a/example/ios/OPSQLiteExample/AppDelegate.mm +++ b/example/ios/OPSQLiteExample/AppDelegate.mm @@ -1,42 +1,45 @@ #import "AppDelegate.h" - +#import "OPSQLite.h" #import @implementation AppDelegate -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ - self.moduleName = @"OPSQLiteExample"; - return [super application:application didFinishLaunchingWithOptions:launchOptions]; +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + self.moduleName = @"OPSQLiteExample"; + [OPSQLite expoUpdatesWorkaround]; + return [super application:application + didFinishLaunchingWithOptions:launchOptions]; } -- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge -{ - return [self bundleURL]; +- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { + return [self bundleURL]; } -- (NSURL *)bundleURL -{ +- (NSURL *)bundleURL { #if DEBUG - return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; + return [[RCTBundleURLProvider sharedSettings] + jsBundleURLForBundleRoot:@"index"]; #else - return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; + return [[NSBundle mainBundle] URLForResource:@"main" + withExtension:@"jsbundle"]; #endif } -/// This method controls whether the `concurrentRoot`feature of React18 is turned on or off. +/// 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 -{ - return true; +/// @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 { + return true; } --(BOOL)bridgelessEnabled -{ - return YES; +- (BOOL)bridgelessEnabled { + return YES; } @end