Skip to content
Back

Does AppWrite work in a bear React Native project?

  • 1
  • 2
  • React Native
Dannyr22
15 Nov, 2024, 15:49

Hello all,

I just installed react-native-appwrite into my bare React Native project and I'm seeing this issue

expo-modules-core could not be found within the project or in these directories:

I tried then installing the expo package and ran into more issues so it looks as though to use AppWrite with React Native it needs to use Expo is that right or is there perhaps a work around?

TL;DR
AppWrite does not work in a bare React Native project due to compatibility issues. It is recommended to use Expo with AppWrite instead. Avoid installing expo-modules-core in a bare RN project as it may lead to further issues.
15 Nov, 2024, 16:24

Hello Can I see your installed libraries? From the package.json?

15 Nov, 2024, 16:26

And did you installed polyfill-url?

15 Nov, 2024, 16:37

Hey <@1276628406288519234> I did indeed install the required dep's

15 Nov, 2024, 16:37

Did you used npm install.... Or npx expo install.....

15 Nov, 2024, 16:38

I used yarn 🧶

15 Nov, 2024, 16:39

Well Not familier with yarn. Ok Lets say, why are you using bare react native? Isnt using with expo better?

15 Nov, 2024, 16:41

There's an argument for both but My work uses bare react native so that's what I'm going with. It's fine if it needs to be with expo, I just wanted to check to see if there was a workaround

15 Nov, 2024, 16:42

Might be a good idea to put this in the getting started docs if anyone from AppWrite is listening 👍

15 Nov, 2024, 16:42

Yep. Although i have some extra question. Did the error came after installation of appwrite?

15 Nov, 2024, 16:43

And can you provide the commands that used. I just want to check it myself.
And do some troubleshooting if necessary

15 Nov, 2024, 16:45

No worries, it came after trying to build the app after running yarn add react-native-appwrite react-native-url-polyfill

15 Nov, 2024, 16:46

Then i ran yarn add expo-modules-core to try and fix and it just creates a long chain of expo issues in the node modules with stuff being undefined

15 Nov, 2024, 16:49

No You dont add expo modules core I think you add expo only

15 Nov, 2024, 16:54

What do you mean sorry?

15 Nov, 2024, 17:05

Like npm install expo Not npm install expo modules core

15 Nov, 2024, 18:02

I wouldn't advise installing expo into a bare RN project

15 Nov, 2024, 18:03

Thanks for help though!

15 Nov, 2024, 18:13

Just checked and expo can't install when there is already an Android and ios folder

18 Jan, 2026, 10:48

Even i am getting issues while using appwrite in my react native app created using react native cli, i am not using expo. i get below errors during initialization.

18 Jan, 2026, 10:49

this is one of my side projects, i am done 50% so can't switch to expo now.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more