appwrite / sdk-for-react-native

[READ ONLY] Official Appwrite React Native SDK πŸ’™ βš›οΈŽ
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
3.73k stars 21 forks source link

πŸ› Bug Report: Can't use this sdk with bare react native #25

Open imPrathamDev opened 3 months ago

imPrathamDev commented 3 months ago

πŸ‘Ÿ Reproduction steps

I just used this sdk with my bare react native project and encountern the error that this package uses expo-file-system and I have to use expo with my bare react native project, I can't affords using expo in my project because I am using some packages which not support expo. This package should be bare react native first then expo and you should mention in the docs that this package only for expo projects only. I know react native's official docs recommended to using expo so what? there are many comapines using bare react native in production and few using expo in production, because of one package we can't affords using expo.

πŸ‘ Expected behavior

Should works fine with both workflow.

πŸ‘Ž Actual Behavior

Actual Error: Screenshot 2024-08-08 193117

🎲 Appwrite version

Different version (specify in environment)

πŸ’» Operating system

Windows

🧱 Your Environment

react-native-appwrite = 0.4.0

πŸ‘€ Have you spent some time to check if this issue has been raised before?

🏒 Have you read the Code of Conduct?

stnguyen90 commented 3 months ago

@imPrathamDev, thanks for raising this issue! πŸ™πŸΌ Do you have a suggestion for how to support both expo and non-expo projects? From what we saw, it's possible to use expo-file-system in a non-expo project, however, the other packages we looked at for non-expo projects didn't work on expo.

mohanyadav commented 2 months ago

@imPrathamDev @stnguyen90 I was able to use the SDK in a bare React Native project recently by installing expo (Expo modules are also supported in RN now). You can follow these steps from the official expo docs - https://docs.expo.dev/bare/installing-expo-modules/ After installing expo I installed expo-file-system and Appwrite SDK was working.

priyaranjan21 commented 3 weeks ago

Is this Issue Resolved?