Skip to content

Commit 4e3f6d6

Browse files
authored
chore: suggest adding flag in Podfile instead of console (facebook#4284)
* chore: suggest adding flag in Podfile instead of console PR changing the suggested way of switching the new/old arch on `iOS` so it is similar to `Android`. Also, it seems more reasonable to have it in the `Podfile`, otherwise you (and your whole team) would have to remember about doing it every time. * fix: apply review suggestion
1 parent 0726b91 commit 4e3f6d6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

website/architecture/landing-page.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,16 @@ If, for any reasons, you can't use the New Architecture, you can still opt-out f
230230
231231
### iOS
232232
233-
1. Install your CocoaPods dependencies with the command:
233+
1. Open the `ios/Podfile` file
234+
2. Add `ENV['RCT_NEW_ARCH_ENABLED'] = '0'` in the main scope of the Podfile ([reference Podfile](https://github.com/react-native-community/template/blob/0.76-stable/template/ios/Podfile) in the template)
235+
```diff
236+
+ ENV['RCT_NEW_ARCH_ENABLED'] = '0'
237+
# Resolve react_native_pods.rb with node to allow for hoisting
238+
require Pod::Executable.execute_command('node', ['-p',
239+
'require.resolve(
240+
```
241+
3. Install your CocoaPods dependencies with the command:
234242
235243
```shell
236-
RCT_NEW_ARCH_ENABLED=0 bundle exec pod install
244+
bundle exec pod install
237245
```

0 commit comments

Comments
 (0)