Skip to content

Commit 2c51c59

Browse files
fix: Fix Versioned URL
1 parent 169b66c commit 2c51c59

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

docs/the-new-architecture/pure-cxx-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1717
The rest of this guide assume that you have created your application running the command:
1818

1919
```shell
20-
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion}
20+
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}
2121
```
2222

2323
## 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
227227
1. From the folder `SampleApp/android/app/src/main/jni`, run the following command:
228228

229229
```sh
230-
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
230+
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
231231
```
232232

233233
2. Then, modify this file as follows:

website/versioned_docs/version-0.77/the-new-architecture/pure-cxx-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1717
The rest of this guide assume that you have created your application running the command:
1818

1919
```shell
20-
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion}
20+
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}
2121
```
2222

2323
## 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
227227
1. From the folder `SampleApp/android/app/src/main/jni`, run the following command:
228228

229229
```sh
230-
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
230+
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
231231
```
232232

233233
2. Then, modify this file as follows:

website/versioned_docs/version-0.78/the-new-architecture/pure-cxx-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1717
The rest of this guide assume that you have created your application running the command:
1818

1919
```shell
20-
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion}
20+
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}
2121
```
2222

2323
## 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
227227
1. From the folder `SampleApp/android/app/src/main/jni`, run the following command:
228228

229229
```sh
230-
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
230+
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
231231
```
232232

233233
2. Then, modify this file as follows:

website/versioned_docs/version-0.79/the-new-architecture/pure-cxx-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1717
The rest of this guide assume that you have created your application running the command:
1818

1919
```shell
20-
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion}
20+
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}
2121
```
2222

2323
## 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
227227
1. From the folder `SampleApp/android/app/src/main/jni`, run the following command:
228228

229229
```sh
230-
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
230+
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
231231
```
232232

233233
2. Then, modify this file as follows:

website/versioned_docs/version-0.80/the-new-architecture/pure-cxx-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1717
The rest of this guide assume that you have created your application running the command:
1818

1919
```shell
20-
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion}
20+
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}
2121
```
2222

2323
## 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
227227
1. From the folder `SampleApp/android/app/src/main/jni`, run the following command:
228228

229229
```sh
230-
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
230+
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
231231
```
232232

233233
2. Then, modify this file as follows:

website/versioned_docs/version-0.81/the-new-architecture/pure-cxx-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1717
The rest of this guide assume that you have created your application running the command:
1818

1919
```shell
20-
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion}
20+
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}
2121
```
2222

2323
## 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
227227
1. From the folder `SampleApp/android/app/src/main/jni`, run the following command:
228228

229229
```sh
230-
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
230+
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
231231
```
232232

233233
2. Then, modify this file as follows:

website/versioned_docs/version-0.82/the-new-architecture/pure-cxx-modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1717
The rest of this guide assume that you have created your application running the command:
1818

1919
```shell
20-
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion}
20+
npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}
2121
```
2222

2323
## 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
227227
1. From the folder `SampleApp/android/app/src/main/jni`, run the following command:
228228

229229
```sh
230-
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
230+
curl -O https://raw.githubusercontent.com/facebook/react-native/v${getCurrentVersion()}/packages/react-native/ReactAndroid/cmake-utils/default-app-setup/OnLoad.cpp
231231
```
232232

233233
2. Then, modify this file as follows:

0 commit comments

Comments
 (0)