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
Turbo Modules and Fabric components don't have native support for Swift. If you want to write the iOS implementation in Swift for a Turbo Module or Fabric View, see [Swift with Turbo Modules and Fabric](./swift-new-architecture.md).
98
+
99
+
> Note: The C++ template is currently experimental and only works with `includesGeneratedCode: true`. This can make it incompatible with React Native versions other than the one used to generate the codegen files. See [Including Generated Code into Libraries](https://reactnative.dev/docs/the-new-architecture/codegen-cli#including-generated-code-into-libraries) in the React Native docs for more details.
Copy file name to clipboardExpand all lines: packages/create-react-native-library/templates/common/CONTRIBUTING.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,21 @@ To invoke **Nitrogen**, use the following command:
37
37
yarn nitrogen
38
38
```
39
39
40
+
<% } -%>
41
+
<% if (project.cpp) { -%>
42
+
You need to run React Native Codegen to generate the native scaffolding for the C++ Turbo Module. The example app will not build without these generated files.
43
+
44
+
Run **Codegen** in following cases:
45
+
46
+
- When you make changes to `src/Native<%- project.name -%>.ts`.
47
+
- When running the project for the first time (since the generated files are not committed to the repository).
48
+
49
+
To invoke **Codegen**, use the following command:
50
+
51
+
```sh
52
+
yarn bob build --target codegen
53
+
```
54
+
40
55
<% } -%>
41
56
The [example app](/example/) demonstrates usage of the library. You need to run it to test any changes you make.
0 commit comments