react-native-electron icon indicating copy to clipboard operation
react-native-electron copied to clipboard

Is it possible to build / distribute app ?

Open znoue opened this issue 3 years ago • 3 comments

Hi and thank you for you work !

My app is working very well when i run it from command lines, but I can't find a way to distribute it.

I tried to use prebuild binaries from here : https://github.com/electron/electron/releases and I spent several days trying to make it work playing with appropriate settings for react-native, but I can only get a blank electron window (index.html is displayed, and if I write something inside (in html) I can see it on screen, but not the react / react-native content)...

No success either with electron-forge, electron-builder, electron-packager...

Were you able to distribute an app with this extension ? If yes, could you explain how ?

Thank you again, cheers.

znoue avatar Dec 15 '20 16:12 znoue

Hi, do you have any error message showing up in the console that could help explain the issue please?

PaulLeCam avatar Feb 17 '21 15:02 PaulLeCam

Did you set up the project structure correctly?

Do you have your renderer.js file like the one in the example?

wiredmatt avatar Mar 25 '21 19:03 wiredmatt

I just tried running the example and I'm getting a blank window as well. I installed electron, react-native and react-native-web, but it's not working as intended

Errors: https://pastebin.com/RU0mG0Jd

React hooks are not working. I tried removing them and it worked, however I don't think using react makes any sense without being able to use hooks.

wiredmatt avatar Mar 25 '21 19:03 wiredmatt

The example now uses Electron Forge which can be used for packaging.

PaulLeCam avatar Aug 06 '22 11:08 PaulLeCam