sdk-for-react-native icon indicating copy to clipboard operation
sdk-for-react-native copied to clipboard

🐛 Bug Report: Can't use this sdk with bare react native

Open imPrathamDev opened this issue 1 year ago • 2 comments

👟 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?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

imPrathamDev avatar Aug 08 '24 15:08 imPrathamDev

@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.

stnguyen90 avatar Aug 20 '24 05:08 stnguyen90

@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.

mohanyadav avatar Sep 03 '24 13:09 mohanyadav

Is this Issue Resolved?

priyaranjan21 avatar Oct 26 '24 11:10 priyaranjan21

This issue has been solved. For more info you can follow our docs - https://appwrite.io/docs/quick-starts/react-native

Feel free to reopen the issue if you are still facing any issues.

ChiragAgg5k avatar Mar 10 '25 07:03 ChiragAgg5k