1diff --git a/ios/MyApp/AppDelegate.h b/ios/MyApp/AppDelegate.h 2index ef1de86..d3d75b0 100644 3--- a/ios/MyApp/AppDelegate.h 4+++ b/ios/MyApp/AppDelegate.h 5@@ -1,7 +1,8 @@ 6 #import <React/RCTBridgeDelegate.h> 7+#import <Expo/Expo.h> 8 #import <UIKit/UIKit.h> 9 10-@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate> 11+@interface AppDelegate : EXAppDelegateWrapper <UIApplicationDelegate, RCTBridgeDelegate> 12 13 @property (nonatomic, strong) UIWindow *window; 14 15diff --git a/ios/MyApp/AppDelegate.mm b/ios/MyApp/AppDelegate.mm 16index da9f60a..0164063 100644 17--- a/ios/MyApp/AppDelegate.mm 18+++ b/ios/MyApp/AppDelegate.mm 19@@ -31,7 +31,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( 20 { 21 RCTAppSetupPrepareApp(application); 22 23- RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 24+ RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions]; 25 26 #if RCT_NEW_ARCH_ENABLED 27 _contextContainer = std::make_shared<facebook::react::ContextContainer const>(); 28@@ -50,10 +50,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( 29 } 30 31- UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"main", nil); 32+ UIView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:nil]; 33 34 rootView.backgroundColor = [UIColor whiteColor]; 35 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 36- UIViewController *rootViewController = [UIViewController new]; 37+ UIViewController *rootViewController = [self.reactDelegate createRootViewController]; 38 rootViewController.view = rootView; 39 self.window.rootViewController = rootViewController; 40 [self.window makeKeyAndVisible]; 41+ [super application:application didFinishLaunchingWithOptions:launchOptions]; 42 return YES; 43 } 44 45diff --git a/ios/Podfile b/ios/Podfile 46index 99b1b8d..71524e2 100644 47--- a/ios/Podfile 48+++ b/ios/Podfile 49@@ -1,9 +1,18 @@ 50+require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking") 51 require_relative '../node_modules/react-native/scripts/react_native_pods' 52 require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 53 54-platform :ios, '11.0' 55+platform :ios, '12.0' 56 57 target 'ModuleDiff' do 58+ use_expo_modules! 59+ post_integrate do |installer| 60+ begin 61+ expo_patch_react_imports!(installer) 62+ rescue => e 63+ Pod::UI.warn e 64+ end 65+ end 66 config = use_native_modules!