From 79f7d0df5a9f6dd5ecff91a2b16f5701a6375389 Mon Sep 17 00:00:00 2001 From: Ritesh Shukla Date: Thu, 13 Nov 2025 12:51:17 +0530 Subject: [PATCH 1/9] Update React Native version references to 0.82.0 --- docs/the-new-architecture/pure-cxx-modules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/the-new-architecture/pure-cxx-modules.md b/docs/the-new-architecture/pure-cxx-modules.md index 166e2a4a940..5d021732cef 100644 --- a/docs/the-new-architecture/pure-cxx-modules.md +++ b/docs/the-new-architecture/pure-cxx-modules.md @@ -15,7 +15,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version 0.80.0 +npx @react-native-community/cli@latest init SampleApp --version 0.82.0 ``` ## 1. Create the JS specs @@ -225,7 +225,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v0.82.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: From b1027ad1e8f3ec76b72450688cd42c996d8a6f3f Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Thu, 13 Nov 2025 17:07:54 +0530 Subject: [PATCH 2/9] fix: Fix Versioned URL --- docs/the-new-architecture/pure-cxx-modules.md | 6 ++++-- .../version-0.77/the-new-architecture/pure-cxx-modules.md | 6 ++++-- .../version-0.78/the-new-architecture/pure-cxx-modules.md | 6 ++++-- .../version-0.79/the-new-architecture/pure-cxx-modules.md | 6 ++++-- .../version-0.80/the-new-architecture/pure-cxx-modules.md | 6 ++++-- .../version-0.81/the-new-architecture/pure-cxx-modules.md | 6 ++++-- .../version-0.82/the-new-architecture/pure-cxx-modules.md | 6 ++++-- 7 files changed, 28 insertions(+), 14 deletions(-) diff --git a/docs/the-new-architecture/pure-cxx-modules.md b/docs/the-new-architecture/pure-cxx-modules.md index 5d021732cef..29c9b2d94c1 100644 --- a/docs/the-new-architecture/pure-cxx-modules.md +++ b/docs/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,5 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -15,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version 0.82.0 +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} ``` ## 1. Create the JS specs @@ -225,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.82.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md index dcc72097dc9..f068ee07c5b 100644 --- a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,5 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -15,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version 0.77.0 +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} ``` ## 1. Create the JS specs @@ -225,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md index f134e3fc0c4..f068ee07c5b 100644 --- a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,5 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -15,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version 0.78.0 +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} ``` ## 1. Create the JS specs @@ -225,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md index c37c92d22e6..29c9b2d94c1 100644 --- a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,5 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -15,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version 0.79.0 +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} ``` ## 1. Create the JS specs @@ -225,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md index 166e2a4a940..29c9b2d94c1 100644 --- a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,5 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -15,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version 0.80.0 +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} ``` ## 1. Create the JS specs @@ -225,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md index 166e2a4a940..29c9b2d94c1 100644 --- a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,5 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -15,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version 0.80.0 +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} ``` ## 1. Create the JS specs @@ -225,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md index 166e2a4a940..29c9b2d94c1 100644 --- a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,5 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -15,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version 0.80.0 +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} ``` ## 1. Create the JS specs @@ -225,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.76.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: From 2c51c595ec497d583e5350bfdb668158b0ca2bb3 Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Thu, 13 Nov 2025 17:20:17 +0530 Subject: [PATCH 3/9] fix: Fix Versioned URL --- docs/the-new-architecture/pure-cxx-modules.md | 4 ++-- .../version-0.77/the-new-architecture/pure-cxx-modules.md | 4 ++-- .../version-0.78/the-new-architecture/pure-cxx-modules.md | 4 ++-- .../version-0.79/the-new-architecture/pure-cxx-modules.md | 4 ++-- .../version-0.80/the-new-architecture/pure-cxx-modules.md | 4 ++-- .../version-0.81/the-new-architecture/pure-cxx-modules.md | 4 ++-- .../version-0.82/the-new-architecture/pure-cxx-modules.md | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/the-new-architecture/pure-cxx-modules.md b/docs/the-new-architecture/pure-cxx-modules.md index 29c9b2d94c1..95667df26a3 100644 --- a/docs/the-new-architecture/pure-cxx-modules.md +++ b/docs/the-new-architecture/pure-cxx-modules.md @@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} ``` ## 1. Create the JS specs @@ -227,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md index f068ee07c5b..662c08391a9 100644 --- a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md @@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} ``` ## 1. Create the JS specs @@ -227,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md index f068ee07c5b..662c08391a9 100644 --- a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md @@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} ``` ## 1. Create the JS specs @@ -227,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md index 29c9b2d94c1..95667df26a3 100644 --- a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md @@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} ``` ## 1. Create the JS specs @@ -227,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md index 29c9b2d94c1..95667df26a3 100644 --- a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md @@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} ``` ## 1. Create the JS specs @@ -227,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md index 29c9b2d94c1..95667df26a3 100644 --- a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md @@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} ``` ## 1. Create the JS specs @@ -227,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md index 29c9b2d94c1..95667df26a3 100644 --- a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md @@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: ```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion} +npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} ``` ## 1. Create the JS specs @@ -227,7 +227,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: From fb1092e7b995ac5fb38e4cec4069d4889ceca89b Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Thu, 13 Nov 2025 17:28:45 +0530 Subject: [PATCH 4/9] fix: Fix Versioned URL --- docs/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.77/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.78/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.79/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.80/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.81/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.82/the-new-architecture/pure-cxx-modules.md | 6 +++--- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/the-new-architecture/pure-cxx-modules.md b/docs/the-new-architecture/pure-cxx-modules.md index 95667df26a3..3571c341a58 100644 --- a/docs/the-new-architecture/pure-cxx-modules.md +++ b/docs/the-new-architecture/pure-cxx-modules.md @@ -16,9 +16,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md index 662c08391a9..a452d11533d 100644 --- a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md @@ -16,9 +16,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md index 662c08391a9..a452d11533d 100644 --- a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md @@ -16,9 +16,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md index 95667df26a3..3571c341a58 100644 --- a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md @@ -16,9 +16,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md index 95667df26a3..3571c341a58 100644 --- a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md @@ -16,9 +16,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md index 95667df26a3..3571c341a58 100644 --- a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md @@ -16,9 +16,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md index 95667df26a3..3571c341a58 100644 --- a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md @@ -16,9 +16,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()} -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs From 05a085e355e704f4982f1d9c34070f5bf09c9e58 Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Thu, 13 Nov 2025 17:35:01 +0530 Subject: [PATCH 5/9] fix: Fix Versioned URL --- docs/the-new-architecture/pure-cxx-modules.md | 1 + .../version-0.77/the-new-architecture/pure-cxx-modules.md | 6 ++---- .../version-0.78/the-new-architecture/pure-cxx-modules.md | 6 ++---- .../version-0.79/the-new-architecture/pure-cxx-modules.md | 6 ++---- .../version-0.80/the-new-architecture/pure-cxx-modules.md | 6 ++---- .../version-0.81/the-new-architecture/pure-cxx-modules.md | 6 ++---- .../version-0.82/the-new-architecture/pure-cxx-modules.md | 6 ++---- 7 files changed, 13 insertions(+), 24 deletions(-) diff --git a/docs/the-new-architecture/pure-cxx-modules.md b/docs/the-new-architecture/pure-cxx-modules.md index 3571c341a58..ecba5a463ae 100644 --- a/docs/the-new-architecture/pure-cxx-modules.md +++ b/docs/the-new-architecture/pure-cxx-modules.md @@ -1,4 +1,5 @@ import {getCurrentVersion} from '@site/src/getCurrentVersion'; +import CodeBlock from '@theme/CodeBlock'; # Cross-Platform Native Modules (C++) diff --git a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md index a452d11533d..f0ab7ce41e5 100644 --- a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,3 @@ -import {getCurrentVersion} from '@site/src/getCurrentVersion'; - # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -17,7 +15,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} +{`npx @react-native-community/cli@latest init SampleApp --version 0.77.0`} ## 1. Create the JS specs @@ -227,7 +225,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v0.77.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md index a452d11533d..a73f657763d 100644 --- a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,3 @@ -import {getCurrentVersion} from '@site/src/getCurrentVersion'; - # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -17,7 +15,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} +{`npx @react-native-community/cli@latest init SampleApp --version 0.78.0`} ## 1. Create the JS specs @@ -227,7 +225,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v0.78.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md index 3571c341a58..5d67cfd66e1 100644 --- a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,3 @@ -import {getCurrentVersion} from '@site/src/getCurrentVersion'; - # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -17,7 +15,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} +{`npx @react-native-community/cli@latest init SampleApp --version 0.79.0`} ## 1. Create the JS specs @@ -227,7 +225,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v0.79.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md index 3571c341a58..01d1d3208ad 100644 --- a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,3 @@ -import {getCurrentVersion} from '@site/src/getCurrentVersion'; - # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -17,7 +15,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} +{`npx @react-native-community/cli@latest init SampleApp --version 0.80.0`} ## 1. Create the JS specs @@ -227,7 +225,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v0.80.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md index 3571c341a58..ef7a3db0445 100644 --- a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,3 @@ -import {getCurrentVersion} from '@site/src/getCurrentVersion'; - # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -17,7 +15,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} +{`npx @react-native-community/cli@latest init SampleApp --version 0.81.0`} ## 1. Create the JS specs @@ -227,7 +225,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v0.81.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md index 3571c341a58..a87653e7b97 100644 --- a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,3 @@ -import {getCurrentVersion} from '@site/src/getCurrentVersion'; - # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -17,7 +15,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} +{`npx @react-native-community/cli@latest init SampleApp --version 0.82.0`} ## 1. Create the JS specs @@ -227,7 +225,7 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: ```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp +curl -O https://raw.githubusercontent.com/facebook/react-native/v0.82.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp ``` 2. Then, modify this file as follows: From 18164411097b9bbe29194f28eb82ff6d5db8a10d Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Thu, 13 Nov 2025 17:37:14 +0530 Subject: [PATCH 6/9] fix: Fix Versioned URL --- .../version-0.77/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.78/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.79/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.80/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.81/the-new-architecture/pure-cxx-modules.md | 6 +++--- .../version-0.82/the-new-architecture/pure-cxx-modules.md | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md index f0ab7ce41e5..3138d62b710 100644 --- a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md @@ -14,9 +14,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: - -{`npx @react-native-community/cli@latest init SampleApp --version 0.77.0`} - +```shell +npx @react-native-community/cli@latest init SampleApp --version 0.77.0 +``` ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md index a73f657763d..6511f36354e 100644 --- a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md @@ -14,9 +14,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: - -{`npx @react-native-community/cli@latest init SampleApp --version 0.78.0`} - +```shell +npx @react-native-community/cli@latest init SampleApp --version 0.78.0 +``` ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md index 5d67cfd66e1..efb8320fa47 100644 --- a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md @@ -14,9 +14,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: - -{`npx @react-native-community/cli@latest init SampleApp --version 0.79.0`} - +```shell +npx @react-native-community/cli@latest init SampleApp --version 0.79.0 +``` ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md index 01d1d3208ad..485d4d26ea9 100644 --- a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md @@ -14,9 +14,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: - -{`npx @react-native-community/cli@latest init SampleApp --version 0.80.0`} - +```shell +npx @react-native-community/cli@latest init SampleApp --version 0.80.0 +``` ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md index ef7a3db0445..cb610ad3a6b 100644 --- a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md @@ -14,9 +14,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: - -{`npx @react-native-community/cli@latest init SampleApp --version 0.81.0`} - +```shell +npx @react-native-community/cli@latest init SampleApp --version 0.81.0 +``` ## 1. Create the JS specs diff --git a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md index a87653e7b97..5d021732cef 100644 --- a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md @@ -14,9 +14,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: - -{`npx @react-native-community/cli@latest init SampleApp --version 0.82.0`} - +```shell +npx @react-native-community/cli@latest init SampleApp --version 0.82.0 +``` ## 1. Create the JS specs From 028265e962326a77a815cee790b0a92b93cbe1c8 Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Thu, 13 Nov 2025 17:44:33 +0530 Subject: [PATCH 7/9] fix: Fix Versioned URL --- docs/the-new-architecture/pure-cxx-modules.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/the-new-architecture/pure-cxx-modules.md b/docs/the-new-architecture/pure-cxx-modules.md index ecba5a463ae..0a1875e9d1c 100644 --- a/docs/the-new-architecture/pure-cxx-modules.md +++ b/docs/the-new-architecture/pure-cxx-modules.md @@ -227,9 +227,9 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: -```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp -``` + +{`curl -O https://raw.githubusercontent.com/facebook/react-native/${getCurrentVersion() === 'latest' ? '' : 'v'}${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp`} + 2. Then, modify this file as follows: From c73fb226344138a0c40f27b6df056c6c4199de58 Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Thu, 13 Nov 2025 18:49:50 +0530 Subject: [PATCH 8/9] fix: Fix Versioned URL --- .../the-new-architecture/pure-cxx-modules.md | 15 +++++++++------ .../the-new-architecture/pure-cxx-modules.md | 15 +++++++++------ .../the-new-architecture/pure-cxx-modules.md | 17 +++++++++-------- .../the-new-architecture/pure-cxx-modules.md | 17 +++++++++-------- .../the-new-architecture/pure-cxx-modules.md | 17 +++++++++-------- .../the-new-architecture/pure-cxx-modules.md | 17 +++++++++-------- 6 files changed, 54 insertions(+), 44 deletions(-) diff --git a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md index 3138d62b710..9e22ad26e49 100644 --- a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,6 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; +import CodeBlock from '@theme/CodeBlock'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -14,9 +17,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version 0.77.0 -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs @@ -224,9 +227,9 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: -```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.77.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp -``` + +{`curl -O https://raw.githubusercontent.com/facebook/react-native/${getCurrentVersion() === 'latest' ? '' : 'v'}${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp`} + 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md index 6511f36354e..9e22ad26e49 100644 --- a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md @@ -1,3 +1,6 @@ +import {getCurrentVersion} from '@site/src/getCurrentVersion'; +import CodeBlock from '@theme/CodeBlock'; + # Cross-Platform Native Modules (C++) import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; @@ -14,9 +17,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version 0.78.0 -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs @@ -224,9 +227,9 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: -```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.78.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp -``` + +{`curl -O https://raw.githubusercontent.com/facebook/react-native/${getCurrentVersion() === 'latest' ? '' : 'v'}${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp`} + 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md index efb8320fa47..e0673482dd7 100644 --- a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md @@ -1,6 +1,7 @@ -# Cross-Platform Native Modules (C++) +import {getCurrentVersion} from '@site/src/getCurrentVersion'; +import CodeBlock from '@theme/CodeBlock'; -import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; +# Cross-Platform Native Modules (C++) Writing a module in C++ is the best way to share platform-agnostic code between Android and iOS. With pure C++ modules, you can write your logic only once and reuse it right away from all the platforms, without the need of writing platform-specific code. @@ -14,9 +15,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version 0.79.0 -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs @@ -224,9 +225,9 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: -```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.79.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp -``` + +{`curl -O https://raw.githubusercontent.com/facebook/react-native/${getCurrentVersion() === 'latest' ? '' : 'v'}${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp`} + 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md index 485d4d26ea9..e0673482dd7 100644 --- a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md @@ -1,6 +1,7 @@ -# Cross-Platform Native Modules (C++) +import {getCurrentVersion} from '@site/src/getCurrentVersion'; +import CodeBlock from '@theme/CodeBlock'; -import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; +# Cross-Platform Native Modules (C++) Writing a module in C++ is the best way to share platform-agnostic code between Android and iOS. With pure C++ modules, you can write your logic only once and reuse it right away from all the platforms, without the need of writing platform-specific code. @@ -14,9 +15,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version 0.80.0 -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs @@ -224,9 +225,9 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: -```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.80.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp -``` + +{`curl -O https://raw.githubusercontent.com/facebook/react-native/${getCurrentVersion() === 'latest' ? '' : 'v'}${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp`} + 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md index cb610ad3a6b..e0673482dd7 100644 --- a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md @@ -1,6 +1,7 @@ -# Cross-Platform Native Modules (C++) +import {getCurrentVersion} from '@site/src/getCurrentVersion'; +import CodeBlock from '@theme/CodeBlock'; -import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; +# Cross-Platform Native Modules (C++) Writing a module in C++ is the best way to share platform-agnostic code between Android and iOS. With pure C++ modules, you can write your logic only once and reuse it right away from all the platforms, without the need of writing platform-specific code. @@ -14,9 +15,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version 0.81.0 -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs @@ -224,9 +225,9 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: -```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.81.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp -``` + +{`curl -O https://raw.githubusercontent.com/facebook/react-native/${getCurrentVersion() === 'latest' ? '' : 'v'}${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp`} + 2. Then, modify this file as follows: diff --git a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md index 5d021732cef..e0673482dd7 100644 --- a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md @@ -1,6 +1,7 @@ -# Cross-Platform Native Modules (C++) +import {getCurrentVersion} from '@site/src/getCurrentVersion'; +import CodeBlock from '@theme/CodeBlock'; -import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; +# Cross-Platform Native Modules (C++) Writing a module in C++ is the best way to share platform-agnostic code between Android and iOS. With pure C++ modules, you can write your logic only once and reuse it right away from all the platforms, without the need of writing platform-specific code. @@ -14,9 +15,9 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module The rest of this guide assume that you have created your application running the command: -```shell -npx @react-native-community/cli@latest init SampleApp --version 0.82.0 -``` + +{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`} + ## 1. Create the JS specs @@ -224,9 +225,9 @@ The final step is to register the new C++ Turbo Native Module in the runtime, so 1. From the folder `SampleApp/android/app/src/main/jni`, run the following command: -```sh -curl -O https://raw.githubusercontent.com/facebook/react-native/v0.82.0/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp -``` + +{`curl -O https://raw.githubusercontent.com/facebook/react-native/${getCurrentVersion() === 'latest' ? '' : 'v'}${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp`} + 2. Then, modify this file as follows: From 33a5ff7efed0ae14648d6d30ee84cb1f066e4df5 Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Thu, 13 Nov 2025 18:57:31 +0530 Subject: [PATCH 9/9] fix: Fix Versioned URL --- .../version-0.77/the-new-architecture/pure-cxx-modules.md | 3 +-- .../version-0.78/the-new-architecture/pure-cxx-modules.md | 3 +-- .../version-0.79/the-new-architecture/pure-cxx-modules.md | 1 + .../version-0.80/the-new-architecture/pure-cxx-modules.md | 1 + .../version-0.81/the-new-architecture/pure-cxx-modules.md | 1 + .../version-0.82/the-new-architecture/pure-cxx-modules.md | 1 + 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md index 9e22ad26e49..260e5f871fa 100644 --- a/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md @@ -1,10 +1,9 @@ import {getCurrentVersion} from '@site/src/getCurrentVersion'; import CodeBlock from '@theme/CodeBlock'; +import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; # Cross-Platform Native Modules (C++) -import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; - Writing a module in C++ is the best way to share platform-agnostic code between Android and iOS. With pure C++ modules, you can write your logic only once and reuse it right away from all the platforms, without the need of writing platform-specific code. In this guide, we will go through the creation of a pure C++ Turbo Native Module: diff --git a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md index 9e22ad26e49..260e5f871fa 100644 --- a/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md @@ -1,10 +1,9 @@ import {getCurrentVersion} from '@site/src/getCurrentVersion'; import CodeBlock from '@theme/CodeBlock'; +import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; # Cross-Platform Native Modules (C++) -import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; - Writing a module in C++ is the best way to share platform-agnostic code between Android and iOS. With pure C++ modules, you can write your logic only once and reuse it right away from all the platforms, without the need of writing platform-specific code. In this guide, we will go through the creation of a pure C++ Turbo Native Module: diff --git a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md index e0673482dd7..018f427c6e2 100644 --- a/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,6 @@ import {getCurrentVersion} from '@site/src/getCurrentVersion'; import CodeBlock from '@theme/CodeBlock'; +import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; # Cross-Platform Native Modules (C++) diff --git a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md index e0673482dd7..018f427c6e2 100644 --- a/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,6 @@ import {getCurrentVersion} from '@site/src/getCurrentVersion'; import CodeBlock from '@theme/CodeBlock'; +import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; # Cross-Platform Native Modules (C++) diff --git a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md index e0673482dd7..018f427c6e2 100644 --- a/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,6 @@ import {getCurrentVersion} from '@site/src/getCurrentVersion'; import CodeBlock from '@theme/CodeBlock'; +import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; # Cross-Platform Native Modules (C++) diff --git a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md index e0673482dd7..018f427c6e2 100644 --- a/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md +++ b/website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md @@ -1,5 +1,6 @@ import {getCurrentVersion} from '@site/src/getCurrentVersion'; import CodeBlock from '@theme/CodeBlock'; +import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; # Cross-Platform Native Modules (C++)