xref: /expo/docs/public/static/diffs/expo-ios.diff (revision 32f56664)
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 785ed86..9ea037f 100644
17--- a/ios/MyApp/AppDelegate.m
18+++ b/ios/MyApp/AppDelegate.m
19@@ -47,6 +47,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
20   rootViewController.view = rootView;
21   self.window.rootViewController = rootViewController;
22   [self.window makeKeyAndVisible];
23+  [super application:application didFinishLaunchingWithOptions:launchOptions];
24   return YES;
25 }
26
27diff --git a/ios/Podfile b/ios/Podfile
28index 8ad9250..e95b97b 100644
29--- a/ios/Podfile
30+++ b/ios/Podfile
31@@ -1,9 +1,11 @@
32+require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
33 require_relative '../node_modules/react-native/scripts/react_native_pods'
34 require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
35
36-platform :ios, '11.0'
37+platform :ios, '12.0'
38
39 target 'MyApp' do
40+  use_expo_modules!
41   config = use_native_modules!
42
43   use_react_native!(