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 amultiply
function as an example.codegenConfig
specifies"includesGeneratedCode": true
npm 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.tsx
file:npx react-native run-android
but it fails with the errorGranted I have not added the following into the
build.gradle
file but looking at the generated android code from codegen there is nonewarch
oroldarch
directories.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 Libraries
section:Beta Was this translation helpful? Give feedback.
All reactions