xref: /expo/docs/public/static/diffs/expo-ios.diff (revision 820f2441)
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,6 +1,7 @@
6 #import <RCTAppDelegate.h>
7+#import <Expo/Expo.h>
8 #import <UIKit/UIKit.h>
9
10-@interface AppDelegate : RCTAppDelegate
11+@interface AppDelegate : EXAppDelegateWrapper
12
13 @end
14diff --git a/ios/Podfile b/ios/Podfile
15index 99b1b8d..71524e2 100644
16--- a/ios/Podfile
17+++ b/ios/Podfile
18@@ -1,7 +1,8 @@
19+require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
20 require_relative '../node_modules/react-native/scripts/react_native_pods'
21 require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
22
23-platform :ios, min_ios_version_supported
24+platform :ios, '13.0'
25 prepare_react_native_project!
26
27 # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
28@@ -22,6 +23,14 @@ if linkage != nil
29 end
30
31 target 'MyApp' do
32+  use_expo_modules!
33+  post_integrate do |installer|
34+    begin
35+      expo_patch_react_imports!(installer)
36+    rescue => e
37+      Pod::UI.warn e
38+    end
39+  end
40   config = use_native_modules!
41