Skip to content

<my-lib-name>/android/build/generated/source/codegen/jni which is not an existing directory.Β #692

@dcangulo

Description

@dcangulo

Description

Basically the same as #647. The fix was #648 which added react-native.config.json to published files.

But for some reason Turbo module -> C++ for Android & iOS options generate react-native.config.js file not json.

The fix in my case was to add react-native.config.js instead of react-native.config.json.

An if-else statement on which file to add based on the selected options might be needed here: https://github.com/callstack/react-native-builder-bob/blob/main/packages/create-react-native-library/templates/common/%24package.json#L27

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

βœ” What type of library do you want to develop? β€Ί Turbo module
βœ” Which languages do you want to use? β€Ί C++ for Android & iOS

Link to repro

https://github.com/dcangulo/react-native-pkce-challenge/tree/v6.0.0

Environment

--

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions