Spec and Module Naming Conventions #124
Replies: 1 comment 1 reply
-
Hi @jerielng
That's correct. It's a requirement of the codegen.
Yup I agree that this is confusing:
|
Beta Was this translation helpful? Give feedback.
-
Hi @jerielng
That's correct. It's a requirement of the codegen.
Yup I agree that this is confusing:
|
Beta Was this translation helpful? Give feedback.
-
Hey all, I might be getting my wires crossed, but looking through this page, I was wondering if we could get some clarifications on some of the naming conventions involved in migrating to a Turbo Module.
In the examples, I'm seeing different instances of how the module is named, from the Spec file to the actual module name. Do we have any guidance for unifying the naming and differentiating between the nuances?
Is my understanding correct:
Native<module>.ts
convention strictly. This is for Codegen to work, correct?RTNCalculator
, but I see mentions in the Codegen portion that it's referred to asRTNCalculatorSpec
. In some places, I'm seeing it referred to asNativeCalculatorSpec
to match the.ts
file.For the purposes of pattern matching with this example, what's the difference between
NativeCalculatorSpec
andRTNCalculatorSpec
here? Seems like Codegen generates the artifacts asRTNCalculatorSpec
but it's later referenced in the native code asNativeCalculatorSpec
?I wanted to double check if I was missing a link here?
Beta Was this translation helpful? Give feedback.
All reactions