Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent hacking specific module #131

Open
nriccar opened this issue Jul 11, 2023 · 0 comments
Open

prevent hacking specific module #131

nriccar opened this issue Jul 11, 2023 · 0 comments

Comments

@nriccar
Copy link

nriccar commented Jul 11, 2023

hey hey! I'm using rn-nodify but I wan't to use https://github.com/margelo/react-native-quick-crypto for crypto module instead of react-native-crypto... any way of overriding this?

I tried this in shim.js

const quickcrypto = require('react-native-quick-crypto').default
global.crypto = quickcrypto

with no luck. I also tried overriding browser and react-native fields on package json from

"crypto": "react-native-crypto"

to

"crypto": "react-native-quick-crypto"

but it didn't work neither. any ideas? thanks for reading!

edit: also, when injecting shims I'm experiencing a freeze of ~4 secs.. Is there any way of improving this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant