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
Copy file name to clipboardExpand all lines: docs/appendix.md
-6Lines changed: 0 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -171,8 +171,6 @@ Callback functions are not type checked, and are generalized as `Object`s.
171
171
172
172
## IV. Invoking the code-gen during development
173
173
174
-
> This section contains information specific to v0.66 of React Native.
175
-
176
174
The Codegen is typically invoked at build time, but you may find it useful to generate your native interface code on demand for troubleshooting.
177
175
178
176
If you wish to invoke the Codegen manually, you have three options:
@@ -264,10 +262,6 @@ In the above example, the code-gen script will generate several files: `MyLibSpe
264
262
265
263
This guide provides instructions for migrating an application that is based on the default app template that is provided by React Native. If your app has deviated from the template, or you are working with an application that was never based off the template, then the following sections might help.
266
264
267
-
### Finding your bridge delegate
268
-
269
-
This guide assumes that the `AppDelegate` is configured as the bridge delegate. If you are not sure which is your bridge delegate, then place a breakpoint in `RCTBridge` and `RCTCxxBridge`, run your app, and inspect `self.delegate`.
Copy file name to clipboardExpand all lines: docs/enable-apps.md
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,14 @@ This page will help you create or migrate a React Native app that uses the New A
8
8
> If you're using Expo or plan to use Expo, you can't enable the New Architecture at the moment and will have to wait for a future release of the Expo SDK.
9
9
10
10
### Prerequisites
11
+
11
12
1. Use or upgrade to the latest React Native version. This guide is written with the expectation that you’re using the [**latest** React Native release](https://github.com/facebook/react-native/releases/latest).
12
13
2. If you previously installed a global `react-native-cli` package, please remove it as it may cause unexpected issues:
3. Enable Hermes. If you are using React Native 0.70 or above, it is already the [default JS engine](https://reactnative.dev/blog/2022/07/08/hermes-as-the-default) so no action is needed.
17
20
18
21
### Create a React Native app
@@ -24,12 +27,15 @@ If following the setup guide, stop when you reach the section **Running your Rea
24
27
Then, create a new React Native project from the template:
You'll need to reinstall your pods by running `pod install` with the right flag:
55
+
47
56
```shell
48
57
# Run pod install with the flag:
49
58
RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
@@ -60,6 +69,7 @@ You will need to run `pod install` each time a dependency with native code chang
60
69
"pod-install": "RCT_NEW_ARCH_ENABLED=1 bundle exec pod install"
61
70
}
62
71
```
72
+
63
73
and run it with `yarn pod-install`. Note that `bundle install` does not need to run a second time, as long as the Gemfile has not changed.
64
74
65
75
##### Use Xcode to rename files in the `ios` folder
@@ -81,6 +91,7 @@ If you see a build failure from `react-native run-ios`, there may be cached file
81
91
> You may notice longer build times with the New Architecture due to additional step of C++ compilation with the Android NDK. To improve your build time, see [Speeding Up Your Build Phase](https://reactnative.dev/docs/build-speed).
82
92
83
93
#### For new apps created from React Native CLI
94
+
84
95
Set the `newArchEnabled` property to `true` by **either**:
85
96
86
97
- Changing the corresponding line in `android/gradle.properties`
@@ -93,6 +104,7 @@ yarn android
93
104
```
94
105
95
106
#### For existing apps
107
+
96
108
You will only need to update your `android/gradle.properties` file as follows:
Copy file name to clipboardExpand all lines: docs/troubleshooting.md
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -23,16 +23,6 @@ The CocoaPods integration will see frequent updates as we rollout the New Archit
23
23
3. Delete `node_modules` and re-run `yarn install`.
24
24
4. Delete your codegen artifacts and re-run `pod install` (or `arch -x86_64 pod install`, in case of a Mac M1), then clean and build your Xcode project.
25
25
26
-
## Folly Version
27
-
28
-
As it happens, the Folly version used in your podspec must match whatever version is used in React Native at this time. If you see the following error after running `pod install`:
29
-
30
-
```
31
-
[!] CocoaPods could not find compatible versions for pod "RCT-Folly":
32
-
```
33
-
34
-
...you may have a version-mismatch. Take a look at your `node_modules/react-native/React/FBReactNativeSpec/FBReactNativeSpec.podspec` file and make note of the `folly_version` used there. Go back to your own podspec and set your `folly_version` to match.
35
-
36
26
## Android build is failing with `OutOfMemoryException`
37
27
38
28
If your Android Gradle builds are failing with: `OutOfMemoryException: Out of memory: Java heap space.` or similar errors related to low memory, you might need to increase the memory allocated to the JVM.
0 commit comments