React Native & Cosmos DB - How to get them working together?

Zaher R 16 Reputation points
2020-08-01T20:51:50.407+00:00

Hello,

There seem to be no direct support for React Native through Cosmos DB SDK or npm packages. The JS package @azure/cosmos while works on React Native for the Web, but does not build for the native apps. It fails to build due to Crypto incompatibility.

While Resource Tokens can serve as a solution for authentication, but App still needs to interact with the DB resources using an API. So, how to go around this? Is utilizing Azure Functions as a mid-tier the only workaround?

Thanks

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,632 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.