You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure to install [`cocoapods-swift-modular-headers`](https://github.com/callstack/cocoapods-swift-modular-headers) gem, otherwise `pod install` will fail.
45
-
46
-
```sh
47
-
gem install cocoapods-swift-modular-headers
48
-
```
49
-
50
-
Next you can install cocoapods.
42
+
To run the React Native example app on iOS, you need to install cocoapods.
<summary>If you use React Native <b>version 0.75 or lower</b></summary>
24
-
25
-
- For `@react-native-community/cli` users, open Podfile in ios folder and change minimum iOS version to `14.0` before `pod install`
26
-
27
-
```diff
28
-
- platform :ios, min_ios_version_supported
29
-
+ platform :ios, '14.0'
30
-
```
31
-
32
-
- For Expo users, install `expo-build-properties`, open app.json file and update `deploymentTarget` for `ios` as below
33
-
34
-
```json
35
-
{
36
-
"expo": {
37
-
"plugins": [
38
-
[
39
-
"expo-build-properties",
40
-
{
41
-
"ios": {
42
-
"deploymentTarget": "14.0"
43
-
}
44
-
}
45
-
]
46
-
],
47
-
}
48
-
}
49
-
```
50
-
51
-
</details>
52
-
53
-
54
22
55
23
### Expo
56
24
@@ -64,53 +32,6 @@ Add the library plugin in your `app.json` config file and [create a new build](h
64
32
}
65
33
```
66
34
67
-
Then install `expo-build-properties` to enable static linking for iOS by adding `"useFrameworks": "static"` in the plugin.
68
-
69
-
```sh
70
-
npx expo install expo-build-properties
71
-
```
72
-
73
-
```diff
74
-
{
75
-
"expo": {
76
-
"plugins": [
77
-
"react-native-bottom-tabs",
78
-
+ [
79
-
+ "expo-build-properties",
80
-
+ {
81
-
+ "ios": {
82
-
+ "useFrameworks": "static"
83
-
+ }
84
-
+ }
85
-
+ ]
86
-
+ ]
87
-
}
88
-
}
89
-
```
90
-
91
-
Alternatively, you can avoid enabling static linking (which can cause problems with your existing packages) by adding the following in the `expo-build-properties` plugin.
92
-
93
-
```diff
94
-
{
95
-
"expo": {
96
-
"plugins": [
97
-
"react-native-bottom-tabs",
98
-
+ [
99
-
+ "expo-build-properties",
100
-
+ {
101
-
+ "ios": {
102
-
+ "extraPods": [
103
-
+ { name: "SDWebImage", modular_headers: true }, // Work around for not enabling static framework, required for react-native-bottom-tabs
0 commit comments