You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -282,9 +282,9 @@ This is a small manifest file that defines the package for your module.
282
282
283
283
Finally, you need a class that extends the `TurboReactPackage` interface. To run the **Codegen** process, you don't have to completely implement the package class: an empty implementation is enough for the app to pick up the module as a proper React Native dependency and to try and generate the scaffolding code.
284
284
285
-
Create an `android/src/main/java/com/rtncalculator` folder and, inside that folder, create a `RTNCalculatorPackage.java` file.
285
+
Create an `android/src/main/java/com/rtncalculator` folder and, inside that folder, create a `CalculatorPackage.java` file.
286
286
287
-
```javatitle="RTNCalculatorPackage.java"
287
+
```javatitle="CalculatorPackage.java"
288
288
packagecom.RTNCalculator;
289
289
290
290
importandroidx.annotation.Nullable;
@@ -504,8 +504,8 @@ codegen
504
504
505
505
The native code for the Android side of a Turbo Native Module requires:
506
506
507
-
1. to create a `RTNCalculatorModule.java` that implements the module.
508
-
2. to update the `RTNCalculatorPackage.java` created in the previous step.
507
+
1. to create a `CalculatorModule.java` that implements the module.
508
+
2. to update the `CalculatorPackage.java` created in the previous step.
509
509
510
510
The final structure within the Android library should look like this:
0 commit comments