Android backwards compatibility includeCodegenArtifacts statement
#272
Closed
Zach-Dean-Attractions-io
started this conversation in
Documentation
Replies: 1 comment 12 replies
-
|
I believe I've found the error. In the library project created by And removing the |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to create a backwards compatible Turbo native module library.
In the documentation here: https://github.com/reactwg/react-native-new-architecture/blob/main/docs/backwards-compat-turbo-modules.md it states
Is this statement correct?
I have followed these steps:
npx create-react-native-library@latest TurboModuleLibrary, which exposes amultiplyfunction as an example.codegenConfigspecifies"includesGeneratedCode": truenpm publish --registry http://localhost:4873/0.75.0(where the legacy architecture will be in use) and installed the librarynpm install <library_name> --registry http://localhost:4873/App.tsxfile:npx react-native run-androidbut it fails with the errorGranted I have not added the following into the
build.gradlefile but looking at the generated android code from codegen there is nonewarchoroldarchdirectories.Is there something I'm missing or is this statement incorrect? The React Native documentation here: https://reactnative.dev/docs/the-new-architecture/codegen-cli also suggests the same in the
Including Generated Code into Librariessection:Beta Was this translation helpful? Give feedback.
All reactions