'Firebase Hosting of React Native App (Not made using Expo)

I have a react-native application which was made using the react native CLI

npx react-native init myProject

Below is the project structure

enter image description here

I have managed to run the app on my android emulator and have a backend on Firebase with FireStore Database and Authentication. However, I would like to be able to have a web app too and looked into Firebase Hosting. But all the instructions and tutorials on that require a package called "build" which contains an index.html. And I believe that is the project structure in Expo CLI but not in React Native CLI (Like this one https://medium.com/swlh/how-to-deploy-a-react-app-with-firebase-hosting-98063c5bf425).

Hence my question is, is it possible to launch a web app from my existing React Native project? I saw some suggestion of using React-Native-Web like https://aureliomerenda.medium.com/create-a-native-web-app-with-react-native-web-419acac86b82 but I have no idea how to integrate that with Firebase Hosting. ANY suggestions would be welcome because I am really confused :(



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source