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.m b/ios/MyApp/AppDelegate.m 16index da9f60a..0164063 100644 17--- a/ios/MyApp/AppDelegate.m 18+++ b/ios/MyApp/AppDelegate.m 19@@ -31,8 +31,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( 20 InitializeFlipper(application); 21 #endif 22 23- RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 24- RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 25+ RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions]; 26+ RCTRootView *rootView = [self.reactDelegate createRootViewWithBridge:bridge 27 moduleName:@"MyApp" 28 initialProperties:nil]; 29 30@@ -43,10 +43,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( 31 } 32 33 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 34- UIViewController *rootViewController = [UIViewController new]; 35+ UIViewController *rootViewController = [self.reactDelegate createRootViewController]; 36 rootViewController.view = rootView; 37 self.window.rootViewController = rootViewController; 38 [self.window makeKeyAndVisible]; 39+ [super application:application didFinishLaunchingWithOptions:launchOptions]; 40 return YES; 41 } 42 43diff --git a/ios/Podfile b/ios/Podfile 44index 99b1b8d..71524e2 100644 45--- a/ios/Podfile 46+++ b/ios/Podfile 47@@ -1,9 +1,18 @@ 48+require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking") 49 require_relative '../node_modules/react-native/scripts/react_native_pods' 50 require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 51 52-platform :ios, '10.0' 53+platform :ios, '12.0' 54 55 target 'ModuleDiff' do 56+ use_expo_modules! 57+ post_integrate do |installer| 58+ begin 59+ expo_patch_react_imports!(installer) 60+ rescue => e 61+ Pod::UI.warn e 62+ end 63+ end 64 config = use_native_modules!