uncrypto icon indicating copy to clipboard operation
uncrypto copied to clipboard

react-native support

Open himself65 opened this issue 3 months ago • 1 comments

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


himself65 avatar Sep 14 '25 20:09 himself65

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?

pi0 avatar Sep 15 '25 11:09 pi0