Skip to content

Commit b342daa

Browse files
authored
Merge pull request #231 from silencer07/main
2 parents f7cb13b + f728377 commit b342daa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/turbo-modules.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Turbo Native Modules are the next iteration on Native Modules that provide a few
1414
At a high-level the steps for writing a Turbo Module are:
1515

1616
1. Define a JavaScript specification using Flow or TypeScript.
17-
1. Configure the dependencies management system to generate code from the provided spec.
18-
1. Implement the Native code.
19-
1. Integrate the code in the app.
17+
2. Configure the dependencies management system to generate code from the provided spec.
18+
3. Implement the Native code.
19+
4. Integrate the code in the app.
2020

2121
This guide will show you how to create a basic Turbo Native Module compatible with the latest version of React Native.
2222

@@ -521,7 +521,7 @@ codegen
521521
├── java
522522
│ └── com
523523
│ └── rtncalculator
524-
│ └── NativeCalculatorSpec.java
524+
│ └── NativeRTNCalculatorSpec.java
525525
├── jni
526526
│ ├── Android.mk
527527
│ ├── CMakeLists.txt
@@ -579,9 +579,9 @@ import com.facebook.react.bridge.ReactContextBaseJavaModule;
579579
import com.facebook.react.bridge.ReactMethod;
580580
import java.util.Map;
581581
import java.util.HashMap;
582-
import com.rtncalculator.NativeCalculatorSpec;
582+
import com.rtncalculator.NativeRTNCalculatorSpec;
583583

584-
public class CalculatorModule extends NativeCalculatorSpec {
584+
public class CalculatorModule extends NativeRTNCalculatorSpec {
585585

586586
public static String NAME = "RTNCalculator";
587587

@@ -611,9 +611,9 @@ package com.rtncalculator
611611

612612
import com.facebook.react.bridge.Promise
613613
import com.facebook.react.bridge.ReactApplicationContext
614-
import com.rtncalculator.NativeCalculatorSpec
614+
import com.rtncalculator.NativeRTNCalculatorSpec
615615

616-
class CalculatorModule(reactContext: ReactApplicationContext) : NativeCalculatorSpec(reactContext) {
616+
class CalculatorModule(reactContext: ReactApplicationContext) : NativeRTNCalculatorSpec(reactContext) {
617617

618618
override fun getName() = NAME
619619

@@ -629,7 +629,7 @@ class CalculatorModule(reactContext: ReactApplicationContext) : NativeCalculator
629629
630630
</details>
631631
632-
This class implements the module itself, which extends the `NativeCalculatorSpec` that was generated from the `NativeCalculator` JavaScript specification file.
632+
This class implements the module itself, which extends the `NativeRTNCalculatorSpec` that was generated from the `NativeCalculator` JavaScript specification file.
633633
634634
##### Updating the `CalculatorPackage.java`
635635

0 commit comments

Comments
 (0)