Global crypto removed starting in Expo 45, how to polyfill entirely

I have an app running on Expo that is using StropheJS GitHub - strophe/strophejs: Strophe.js is an XMPP library for JavaScript. After updating Expo from 44 to 45 or 46 it errors out since it cannot find the global crypto object. I can polyfill crypto.getRandomValues but it also heavily relies on crypto.subtle which seems a lot more complicated to polyfill. I’m assuming this has to do with moving Expo Crypto to JSI as noted in the release notes for Expo 45. Is there any info on how this global crypto object worked in Expo 44? Since it was working fine before the update.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.