Skip to content

prevent hacking specific module #131

Description

@nriccar

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions