Skip to content

Commit fd25cbe

Browse files
authored
Fix typos in pure-cxx-modules.md (#4887)
1 parent 54ded1f commit fd25cbe

File tree

7 files changed

+40
-40
lines changed

7 files changed

+40
-40
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1515
4. Register the module in the Android and iOS application
1616
5. Test your changes in JS
1717

18-
The rest of this guide assume that you have created your application running the command:
18+
The rest of this guide assumes that you have created your application running the command:
1919

2020
<CodeBlock language="bash" title="shell">
2121
{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`}
@@ -94,7 +94,7 @@ This configuration tells Codegen to look for spec files in the `specs` folder. I
9494

9595
## 3. Write the Native Code
9696

97-
Writing a C++ Turbo Native Module allows you to share the code between Android an iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
97+
Writing a C++ Turbo Native Module allows you to share the code between Android and iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
9898

9999
1. Create a folder named `shared` at the same level as the `android` and `ios` folders.
100100
2. Inside the `shared` folder, create a new file called `NativeSampleModule.h`.
@@ -195,7 +195,7 @@ The CMake file does the following things:
195195
Gradle is the tool that orchestrates the Android build. We need to tell it where it can find the `CMake` files to build the Turbo Native Module.
196196

197197
1. Open the `SampleApp/android/app/build.gradle` file.
198-
2. Add the following block into the Gradle file, within the existent `android` block:
198+
2. Add the following block into the Gradle file, within the existing `android` block:
199199

200200
```diff title="android/app/build.gradle"
201201
buildTypes {
@@ -257,7 +257,7 @@ std::shared_ptr<TurboModule> cxxModuleProvider(
257257
// return std::make_shared<NativeCxxModuleExample>(jsInvoker);
258258
// }
259259

260-
+ // This code register the module so that when the JS side asks for it, the app can return it
260+
+ // This code registers the module so that when the JS side asks for it, the app can return it
261261
+ if (name == NativeSampleModule::kModuleName) {
262262
+ return std::make_shared<NativeSampleModule>(jsInvoker);
263263
+ }
@@ -377,7 +377,7 @@ This code implements the `RCTModuleProvider` protocol by creating the pure C++ `
377377
378378
##### 3.2 Update the package.json
379379
380-
The last step consist in updating the `package.json` to tell React Native about the link between the JS specs of the Native Module and the concrete implementation of those spec in native code.
380+
The last step consists in updating the `package.json` to tell React Native about the link between the JS specs of the Native Module and the concrete implementation of those spec in native code.
381381
382382
Modify the `package.json` as it follows:
383383
@@ -448,7 +448,7 @@ function App(): React.JSX.Element {
448448
<Text style={styles.title}>
449449
Welcome to C++ Turbo Native Module Example
450450
</Text>
451-
<Text>Write down here he text you want to revert</Text>
451+
<Text>Write down here the text you want to reverse</Text>
452452
<TextInput
453453
style={styles.textInput}
454454
placeholder="Write your text here"

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1414
4. Register the module in the Android and iOS application
1515
5. Test your changes in JS
1616

17-
The rest of this guide assume that you have created your application running the command:
17+
The rest of this guide assumes that you have created your application running the command:
1818

1919
<CodeBlock language="bash" title="shell">
2020
{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`}
@@ -93,7 +93,7 @@ This configuration tells Codegen to look for spec files in the `specs` folder. I
9393

9494
## 3. Write the Native Code
9595

96-
Writing a C++ Turbo Native Module allows you to share the code between Android an iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
96+
Writing a C++ Turbo Native Module allows you to share the code between Android and iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
9797

9898
1. Create a folder named `shared` at the same level as the `android` and `ios` folders.
9999
2. Inside the `shared` folder, create a new file called `NativeSampleModule.h`.
@@ -194,7 +194,7 @@ The CMake file does the following things:
194194
Gradle is the tool that orchestrates the Android build. We need to tell it where it can find the `CMake` files to build the Turbo Native Module.
195195

196196
1. Open the `SampleApp/android/app/build.gradle` file.
197-
2. Add the following block into the Gradle file, within the existent `android` block:
197+
2. Add the following block into the Gradle file, within the existing `android` block:
198198

199199
```diff title="android/app/build.gradle"
200200
buildTypes {
@@ -256,7 +256,7 @@ std::shared_ptr<TurboModule> cxxModuleProvider(
256256
// return std::make_shared<NativeCxxModuleExample>(jsInvoker);
257257
// }
258258

259-
+ // This code register the module so that when the JS side asks for it, the app can return it
259+
+ // This code registers the module so that when the JS side asks for it, the app can return it
260260
+ if (name == NativeSampleModule::kModuleName) {
261261
+ return std::make_shared<NativeSampleModule>(jsInvoker);
262262
+ }
@@ -397,7 +397,7 @@ function App(): React.JSX.Element {
397397
<Text style={styles.title}>
398398
Welcome to C++ Turbo Native Module Example
399399
</Text>
400-
<Text>Write down here he text you want to revert</Text>
400+
<Text>Write down here the text you want to reverse</Text>
401401
<TextInput
402402
style={styles.textInput}
403403
placeholder="Write your text here"

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1414
4. Register the module in the Android and iOS application
1515
5. Test your changes in JS
1616

17-
The rest of this guide assume that you have created your application running the command:
17+
The rest of this guide assumes that you have created your application running the command:
1818

1919
<CodeBlock language="bash" title="shell">
2020
{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`}
@@ -93,7 +93,7 @@ This configuration tells Codegen to look for spec files in the `specs` folder. I
9393

9494
## 3. Write the Native Code
9595

96-
Writing a C++ Turbo Native Module allows you to share the code between Android an iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
96+
Writing a C++ Turbo Native Module allows you to share the code between Android and iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
9797

9898
1. Create a folder named `shared` at the same level as the `android` and `ios` folders.
9999
2. Inside the `shared` folder, create a new file called `NativeSampleModule.h`.
@@ -194,7 +194,7 @@ The CMake file does the following things:
194194
Gradle is the tool that orchestrates the Android build. We need to tell it where it can find the `CMake` files to build the Turbo Native Module.
195195

196196
1. Open the `SampleApp/android/app/build.gradle` file.
197-
2. Add the following block into the Gradle file, within the existent `android` block:
197+
2. Add the following block into the Gradle file, within the existing `android` block:
198198

199199
```diff title="android/app/build.gradle"
200200
buildTypes {
@@ -256,7 +256,7 @@ std::shared_ptr<TurboModule> cxxModuleProvider(
256256
// return std::make_shared<NativeCxxModuleExample>(jsInvoker);
257257
// }
258258

259-
+ // This code register the module so that when the JS side asks for it, the app can return it
259+
+ // This code registers the module so that when the JS side asks for it, the app can return it
260260
+ if (name == NativeSampleModule::kModuleName) {
261261
+ return std::make_shared<NativeSampleModule>(jsInvoker);
262262
+ }
@@ -397,7 +397,7 @@ function App(): React.JSX.Element {
397397
<Text style={styles.title}>
398398
Welcome to C++ Turbo Native Module Example
399399
</Text>
400-
<Text>Write down here he text you want to revert</Text>
400+
<Text>Write down here the text you want to reverse</Text>
401401
<TextInput
402402
style={styles.textInput}
403403
placeholder="Write your text here"

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1414
4. Register the module in the Android and iOS application
1515
5. Test your changes in JS
1616

17-
The rest of this guide assume that you have created your application running the command:
17+
The rest of this guide assumes that you have created your application running the command:
1818

1919
<CodeBlock language="bash" title="shell">
2020
{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`}
@@ -93,7 +93,7 @@ This configuration tells Codegen to look for spec files in the `specs` folder. I
9393

9494
## 3. Write the Native Code
9595

96-
Writing a C++ Turbo Native Module allows you to share the code between Android an iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
96+
Writing a C++ Turbo Native Module allows you to share the code between Android and iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
9797

9898
1. Create a folder named `shared` at the same level as the `android` and `ios` folders.
9999
2. Inside the `shared` folder, create a new file called `NativeSampleModule.h`.
@@ -194,7 +194,7 @@ The CMake file does the following things:
194194
Gradle is the tool that orchestrates the Android build. We need to tell it where it can find the `CMake` files to build the Turbo Native Module.
195195

196196
1. Open the `SampleApp/android/app/build.gradle` file.
197-
2. Add the following block into the Gradle file, within the existent `android` block:
197+
2. Add the following block into the Gradle file, within the existing `android` block:
198198

199199
```diff title="android/app/build.gradle"
200200
buildTypes {
@@ -256,7 +256,7 @@ std::shared_ptr<TurboModule> cxxModuleProvider(
256256
// return std::make_shared<NativeCxxModuleExample>(jsInvoker);
257257
// }
258258

259-
+ // This code register the module so that when the JS side asks for it, the app can return it
259+
+ // This code registers the module so that when the JS side asks for it, the app can return it
260260
+ if (name == NativeSampleModule::kModuleName) {
261261
+ return std::make_shared<NativeSampleModule>(jsInvoker);
262262
+ }
@@ -376,7 +376,7 @@ This code implements the `RCTModuleProvider` protocol by creating the pure C++ `
376376
377377
##### 3.2 Update the package.json
378378
379-
The last step consist in updating the `package.json` to tell React Native about the link between the JS specs of the Native Module and the concrete implementation of those spec in native code.
379+
The last step consists in updating the `package.json` to tell React Native about the link between the JS specs of the Native Module and the concrete implementation of those spec in native code.
380380
381381
Modify the `package.json` as it follows:
382382
@@ -447,7 +447,7 @@ function App(): React.JSX.Element {
447447
<Text style={styles.title}>
448448
Welcome to C++ Turbo Native Module Example
449449
</Text>
450-
<Text>Write down here he text you want to revert</Text>
450+
<Text>Write down here the text you want to reverse</Text>
451451
<TextInput
452452
style={styles.textInput}
453453
placeholder="Write your text here"

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1414
4. Register the module in the Android and iOS application
1515
5. Test your changes in JS
1616

17-
The rest of this guide assume that you have created your application running the command:
17+
The rest of this guide assumes that you have created your application running the command:
1818

1919
<CodeBlock language="bash" title="shell">
2020
{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`}
@@ -93,7 +93,7 @@ This configuration tells Codegen to look for spec files in the `specs` folder. I
9393

9494
## 3. Write the Native Code
9595

96-
Writing a C++ Turbo Native Module allows you to share the code between Android an iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
96+
Writing a C++ Turbo Native Module allows you to share the code between Android and iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
9797

9898
1. Create a folder named `shared` at the same level as the `android` and `ios` folders.
9999
2. Inside the `shared` folder, create a new file called `NativeSampleModule.h`.
@@ -194,7 +194,7 @@ The CMake file does the following things:
194194
Gradle is the tool that orchestrates the Android build. We need to tell it where it can find the `CMake` files to build the Turbo Native Module.
195195

196196
1. Open the `SampleApp/android/app/build.gradle` file.
197-
2. Add the following block into the Gradle file, within the existent `android` block:
197+
2. Add the following block into the Gradle file, within the existing `android` block:
198198

199199
```diff title="android/app/build.gradle"
200200
buildTypes {
@@ -256,7 +256,7 @@ std::shared_ptr<TurboModule> cxxModuleProvider(
256256
// return std::make_shared<NativeCxxModuleExample>(jsInvoker);
257257
// }
258258

259-
+ // This code register the module so that when the JS side asks for it, the app can return it
259+
+ // This code registers the module so that when the JS side asks for it, the app can return it
260260
+ if (name == NativeSampleModule::kModuleName) {
261261
+ return std::make_shared<NativeSampleModule>(jsInvoker);
262262
+ }
@@ -376,7 +376,7 @@ This code implements the `RCTModuleProvider` protocol by creating the pure C++ `
376376
377377
##### 3.2 Update the package.json
378378
379-
The last step consist in updating the `package.json` to tell React Native about the link between the JS specs of the Native Module and the concrete implementation of those spec in native code.
379+
The last step consists in updating the `package.json` to tell React Native about the link between the JS specs of the Native Module and the concrete implementation of those spec in native code.
380380
381381
Modify the `package.json` as it follows:
382382
@@ -447,7 +447,7 @@ function App(): React.JSX.Element {
447447
<Text style={styles.title}>
448448
Welcome to C++ Turbo Native Module Example
449449
</Text>
450-
<Text>Write down here he text you want to revert</Text>
450+
<Text>Write down here the text you want to reverse</Text>
451451
<TextInput
452452
style={styles.textInput}
453453
placeholder="Write your text here"

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In this guide, we will go through the creation of a pure C++ Turbo Native Module
1414
4. Register the module in the Android and iOS application
1515
5. Test your changes in JS
1616

17-
The rest of this guide assume that you have created your application running the command:
17+
The rest of this guide assumes that you have created your application running the command:
1818

1919
<CodeBlock language="bash" title="shell">
2020
{`npx @react-native-community/cli@latest init SampleApp --version ${getCurrentVersion()}`}
@@ -93,7 +93,7 @@ This configuration tells Codegen to look for spec files in the `specs` folder. I
9393

9494
## 3. Write the Native Code
9595

96-
Writing a C++ Turbo Native Module allows you to share the code between Android an iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
96+
Writing a C++ Turbo Native Module allows you to share the code between Android and iOS. Therefore we will be writing the code once, and we will look into what changes we need to apply to the platforms so that the C++ code can be picked up.
9797

9898
1. Create a folder named `shared` at the same level as the `android` and `ios` folders.
9999
2. Inside the `shared` folder, create a new file called `NativeSampleModule.h`.
@@ -194,7 +194,7 @@ The CMake file does the following things:
194194
Gradle is the tool that orchestrates the Android build. We need to tell it where it can find the `CMake` files to build the Turbo Native Module.
195195

196196
1. Open the `SampleApp/android/app/build.gradle` file.
197-
2. Add the following block into the Gradle file, within the existent `android` block:
197+
2. Add the following block into the Gradle file, within the existing `android` block:
198198

199199
```diff title="android/app/build.gradle"
200200
buildTypes {
@@ -256,7 +256,7 @@ std::shared_ptr<TurboModule> cxxModuleProvider(
256256
// return std::make_shared<NativeCxxModuleExample>(jsInvoker);
257257
// }
258258

259-
+ // This code register the module so that when the JS side asks for it, the app can return it
259+
+ // This code registers the module so that when the JS side asks for it, the app can return it
260260
+ if (name == NativeSampleModule::kModuleName) {
261261
+ return std::make_shared<NativeSampleModule>(jsInvoker);
262262
+ }
@@ -376,7 +376,7 @@ This code implements the `RCTModuleProvider` protocol by creating the pure C++ `
376376
377377
##### 3.2 Update the package.json
378378
379-
The last step consist in updating the `package.json` to tell React Native about the link between the JS specs of the Native Module and the concrete implementation of those spec in native code.
379+
The last step consists in updating the `package.json` to tell React Native about the link between the JS specs of the Native Module and the concrete implementation of those spec in native code.
380380
381381
Modify the `package.json` as it follows:
382382
@@ -447,7 +447,7 @@ function App(): React.JSX.Element {
447447
<Text style={styles.title}>
448448
Welcome to C++ Turbo Native Module Example
449449
</Text>
450-
<Text>Write down here he text you want to revert</Text>
450+
<Text>Write down here the text you want to reverse</Text>
451451
<TextInput
452452
style={styles.textInput}
453453
placeholder="Write your text here"

0 commit comments

Comments
 (0)