brunolemos / react-native-web-monorepo

Code sharing between iOS, Android & Web using monorepo
https://dev.to/brunolemos/tutorial-100-code-sharing-between-ios-android--web-using-react-native-web-andmonorepo-4pej
865 stars 175 forks source link

Electron Question #68

Closed ghost closed 3 years ago

ghost commented 3 years ago

How difficult would it be for a small team to add electron support to this repo in your personal opinion?

brunolemos commented 3 years ago

It's not hard, since electron basically needs to render the web application. You need to make electron point to localhost:3000 during development and make electron serve the dist files (after building the web project) on product.

You can check https://github.com/devhubapp/devhub source code but I'm not proud of how I did it there.