I'm using some auth node module in my react native application which is using jose as a dependency. I get the following error which I believe is due to the fact that in-build typescript/ node libraries are not supported by React native.
ERROR ReferenceError: Can't find variable: crypto ERROR
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
Even using node-libs-react-native or rn-nodify in my app didn't fix the issue. It appears adding a resolver to metro.config.js
to provide extra node modules doesn't fix the issue for the libraries used by dependencies (here jose is used by the auth library and jose is using crypto).
Any solution or workaround to get this into working?
I found 2 similar issues, but nothing mentioned there worked for me.