Moralis React Native, Crypto Dep Error

Also how do i import Moralis into the App.js?

I’m experiencing a similar problem is there a solution or can we not use Moralis with react native currently?

Hi @clb @omni

Official library for react-native coming later this year. But now you can use Moralis React SDK for developing on React Native, it might not be easy if you don’t have react-native experience, but it should work.

Hi Yomoo,

I am currently trying to transition from Next.js to React Native and I have a problem with Metamask and or Moralis authentication. I use Expo and for some reason, it compiles perfectly in the browser but it does not on my phone. The current error is:
…\node_modules\moralis\lib\browser\EventEmitter.js: events could not be found within the project or in these directories:
node_modules\moralis\node_modules
node_modules

Is there any additional steps I forgot or need to add for Native?

Hey @mattmorvai

Take a look at:

But If it will not solve the problem - please open a new topic and provide us more information :raised_hands: and we will start to figure out the details :man_mechanic:

REACT NATIVE SUPPORT IS HERE! https://www.youtube.com/watch?v=FRilwynjW1c