Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
imPrathamDev opened this issue Aug 8, 2024 · 3 comments
Open
2 tasks done

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

imPrathamDev opened this issue Aug 8, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@imPrathamDev
Copy link

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

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@imPrathamDev imPrathamDev added the bug Something isn't working label Aug 8, 2024
@stnguyen90
Copy link
Contributor

@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 stnguyen90 self-assigned this Aug 20, 2024
@mohanyadav
Copy link

@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
Copy link

Is this Issue Resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants