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.