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 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 32- UIViewController *rootViewController = [UIViewController new]; 33+ UIViewController *rootViewController = [self.reactDelegate createRootViewController]; 34 rootViewController.view = rootView; 35 self.window.rootViewController = rootViewController; 36 [self.window makeKeyAndVisible]; 37+ [super application:application didFinishLaunchingWithOptions:launchOptions]; 38 return YES; 39 } 40 41diff --git a/ios/Podfile b/ios/Podfile 42index 99b1b8d..71524e2 100644 43--- a/ios/Podfile 44+++ b/ios/Podfile 45@@ -1,9 +1,18 @@ 46+require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking") 47 require_relative '../node_modules/react-native/scripts/react_native_pods' 48 require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 49 50-platform :ios, '11.0' 51+platform :ios, '12.0' 52 53 target 'ModuleDiff' do 54+ use_expo_modules! 55+ post_integrate do |installer| 56+ begin 57+ expo_patch_react_imports!(installer) 58+ rescue => e 59+ Pod::UI.warn e 60+ end 61+ end 62 config = use_native_modules!