From 42e0266b0c8b93c883b0253ae0f4c1fe825630e9 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Fri, 9 Sep 2022 12:21:24 +0100 Subject: [PATCH] fix: Address missing feedback from prev PR (#3312) --- docs/new-architecture-intro.md | 7 +++---- docs/react-18-and-react-native.md | 1 + .../version-0.70/new-architecture-app-intro.md | 8 +------- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/new-architecture-intro.md b/docs/new-architecture-intro.md index 68e44846a56..fce2e38630b 100644 --- a/docs/new-architecture-intro.md +++ b/docs/new-architecture-intro.md @@ -22,10 +22,9 @@ The guide is divided into five sections: - [iOS](new-architecture-library-ios) - **Supporting the New Architecture in your App** - [Prerequisites for Supporting the New Architecture in your App](new-architecture-app-intro) - - Enabling the New NativeModule System (TurboModule) in your App - - [Android](new-architecture-app-modules-android) - - Enabling the New Renderer (Fabric) in your App - - [Android](new-architecture-app-renderer-android) + - Android + - [Enabling the New NativeModule System (TurboModule) in your App](new-architecture-app-modules-android) + - [Enabling the New Renderer (Fabric) in your App](new-architecture-app-renderer-android) - [**React 18 & React Native**](react-18-and-react-native) - [**Troubleshooting**](new-architecture-troubleshooting) - [**Appendix**](new-architecture-appendix) diff --git a/docs/react-18-and-react-native.md b/docs/react-18-and-react-native.md index acbe7874440..ed4a5d09eb6 100644 --- a/docs/react-18-and-react-native.md +++ b/docs/react-18-and-react-native.md @@ -110,6 +110,7 @@ On iOS, you'll have access to the `concurrentRootEnabled` method on your `AppDel /// @return: `true` if the `concurrentRoot` feture is enabled. Otherwise, it returns `false`. - (BOOL)concurrentRootEnabled { + // Switch this bool to turn on and off the concurrent root return true; } ``` diff --git a/website/versioned_docs/version-0.70/new-architecture-app-intro.md b/website/versioned_docs/version-0.70/new-architecture-app-intro.md index dc7948d4dff..b0b0b519a60 100644 --- a/website/versioned_docs/version-0.70/new-architecture-app-intro.md +++ b/website/versioned_docs/version-0.70/new-architecture-app-intro.md @@ -18,13 +18,7 @@ This guide is written with the expectation that you’re using the latest React To update to the most recent version of React Native, you can run this command: ```bash -yarn add react-native@0.70.0 -``` - -Starting from React Native `0.69.0`, you may also need to update the version of React to 18. You can do so by using this command: - -```bash -yarn add react@18.0.0 +npx react-native upgrade ``` ### Android specifics