I have a HelloWorld app in React Native which i'm running using Expo on my iPhone, and I'm trying to connect it to Azure Cosmos DB Table. I just followed the tutorials in https://docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-nodejs but when I want to run my server, I keep getting errors about different libraries like "fs" library like :
failed building JavaScript bundle. The package at "node_modules/azure-storage/lib/services/file/fileservice.node.js" attempted to import the Node standard library module "fs". It failed because the native React runtime does not include the Node standard library. Read more at https://docs.expo.io/workflow/using-libraries/#using-third-party-libraries
I tried to use "react-native-fs" and other ways, but it doesn't work.
1- Is it anything wrong in my steps ? Because the Microsoft tutorial should work.
2 - Is there anyway to solve this ?
1.4m articles
1.4m replys
5 comments
57.0k users