Skip to content

Linking Not Works when adding a native module inside Newly created native module #489

@s-jain-cognam

Description

@s-jain-cognam

I have created a native module named x and in which have added some other dependencies which are also native modules (y and z),

On installing the module x in my project. I can see x, y and z are there in my node_modules.

but when in the module x where i have used y and z. they are being shown undefine.

In x i have somewhere used it like

const { RNYModule } = NativeModule;

but value of RNYModule is being given undefined.

Which i understand ny the Y package have not been linked in my root project.

I have also tried installing y and z modules in x as peerDependencies so root project can link it. but it not working also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions