uncrypto
uncrypto copied to clipboard
react-native support
Environment
expo and react native
Reproduction
import this repo
Describe the bug
const crypto = globalThis.crypto // <-- this is undefined on react native
const subtle = crypto.subtle // <-- undefined.subtile
Additional context
No response
Logs
Uncrypto mainly allows unified access to native WebCrypto implemented in runtimes and does not implement a polyfill for WebCrypto.
I understand that you expect Uncrypto to work out of the box with React Native, but unfortunately, React Native does not implement it, and it seems they don't want to due to the complexity of it (https://github.com/react-native-community/discussions-and-proposals/issues/83).
Only relevant ongoing work i could find is https://github.com/facebook/hermes/issues/1003
What specific APIs you need in your case?