Skip to content

Commit 41ae98b

Browse files
committed
[RN][NewArch] Add danger block for C++ TurboModule
1 parent 3125a70 commit 41ae98b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ The rest of this guide assume that you have created your application running the
1818
npx @react-native-community/cli@latest init SampleApp --version 0.76.0
1919
```
2020

21+
:::danger
22+
We are aware of some issues that are preventing pure C++ Modules to work well on Android, when developed locally in the app.
23+
Pure C++ modules consumed as external libraries works well on Android.
24+
25+
These issues started from version 0.76.2 and are still persisting in version 0.76.5.
26+
27+
We found the root cause for the issue (see [#48298](https://github.com/facebook/react-native/issues/48298) and [#48340](https://github.com/facebook/react-native/pull/48340)), and we are aiming to fix in 0.76.6.
28+
:::
29+
2130
## 1. Create the JS specs
2231

2332
Pure C++ Turbo Native Modules are Turbo Native Modules. They need a specification file (also called spec file) so that Codegen can create the scaffolding code for us. The specification file is also what we use to access the Turbo Native Module in JS.

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ The rest of this guide assume that you have created your application running the
1818
npx @react-native-community/cli@latest init SampleApp --version 0.76.0
1919
```
2020

21+
:::danger
22+
We are aware of some issues that are preventing pure C++ Modules to work well on Android, when developed locally in the app.
23+
Pure C++ modules consumed as external libraries works well on Android.
24+
25+
These issues started from version 0.76.2 and are still persisting in version 0.76.5.
26+
27+
We found the root cause for the issue (see [#48298](https://github.com/facebook/react-native/issues/48298) and [#48340](https://github.com/facebook/react-native/pull/48340)), and we are aiming to fix in 0.76.6.
28+
:::
29+
2130
## 1. Create the JS specs
2231

2332
Pure C++ Turbo Native Modules are Turbo Native Modules. They needs a specification file (also called spec file) so that Codegen can create the scaffolding code for us. The specification file is also what we use to access the Turbo Native Module in JS.

0 commit comments

Comments
 (0)