React Native Firebase type android or Web App?

593 Views Asked by At

I want to turn my reactjs web app in to android app via google play store. The backend is in firebase! which type of setup should i choose web or android ? I want both web app and android sharing the same data!

the links bellow makes my confusion more clear!

[add app] [1]: https://i.stack.imgur.com/N1hqk.jpg

type of app

1

There are 1 best solutions below

1
Arthur Walsh On

I'm not sure of want you're trying to achieve here.

If your ReactJS App is a PWA, you can convert it to a TWA to publish it to the Play Store. In that case no need to "add" a new app to your firebase project.

If you're building an Android App and you want to share the data, then you'll need to "add" a new app in your Firebase project, for Android and you'll be able to connect to the same firestore DB, Realtime DB, Cloud Storage etc from both your app and your website. More Details to add the firebase SDK to your Android App here

If you haven't build anything yet, perhaps start by the ReactJS app, and therefor creating a web app on your Firebase project. And if you're trying to build a React Native App, read the RN Firebase SDK Documentation. It is written that you'll have to create an Android app on your Firebase project, and an iOS app.