Hey guys so I implemented web3auths react native boilerplate into my react native/expo app. However, I realized that they recently came out with a new MPC version, which I need to use. Unfortunately, they don't have any sort of react native / expo guides. And using the libraries / code that they gave (for react) gives a bunch of errors.
The installation guide for normal web3auth can be found here
The installation guide for the new web3auth-mpc can be found here
I've tried polyfilling various libraries and I've made some progress but I'm still largely stuck.
The libraries that I need to work for this are torus-mpc, @web3auth-mpc/openlogin-adapter, @web3auth-mpc/web3auth, @web3auth-mpc/base
I got torus-mpc working by polyfilling with text-encoding-polyfill & @hapi/joi I made some progress on @web3auth-mpc/openlogin-adapter with expo-crypto-polyfills.
However I'm still largely stuck. These libraries require WebAssembly which I can't use with react native. There's also a bunch of other requirements for these node_modules files that just don't work on native. But they have a working version of web3auth on react native with @web3auth/react-native-sdk (non MPC) so I'm assuming there's a way to do this... Any ideas?