Making Desktop apps with Electron, React Native, and Expo Evan Bacon on November 26, 2019 TL;DR: Example. Expo + Electron is in alpha (Nov 2019). docs = most recent info. This tutorial will show you how to use React Native, Electron, We... Read full post Submit Preview Dismiss Collapse Expand Wern Ancheta Wern Ancheta Wern Ancheta Follow Joined Jan 15, 2018 • Dec 18 '19 • Edited on Dec 18 • Edited Dropdown menu Copy link Hide Thanks for writing this guide! I tried creating a demo app with it and it works in development mode. The only problem is that the build doesn't seem to work. I'm getting this error when compiling in mac: I used the following command to compile: yarn electron-webpack && yarn electron-builder --dir -c.compression=store -c.mac.identity=null There were no errors in the compilation process. My babel.config.js looks like: module.exports = function(api) { api.cache(true); return { presets: ['babel-preset-expo', 'module:metro-react-native-babel-preset', 'module:react-native-dotenv'], }; }; Enter fullscreen mode Exit fullscreen mode any ideas why this is? does babel-preset-expo support global module imports? again, thank you for this. I'll continue trying to figure out what's wrong. Collapse Expand Alberto Robles Alberto Robles Alberto Robles Follow React Developer Location Canada Work React Developer Joined Jan 14, 2020 • Jan 14 '20 Dropdown menu Copy link Hide Hi, there. I'm getting a similar error. I've been trying to fix it by changing the syntax for that line from 'import from ...' to 'require('....')'. It "worked" in the way that the error moved to the next "import" statement. Is ES6 not working on the build? Tried using other babel presets (babel/env, babel-react, etc...). With these ones, not even the building finishes. Can't find any solution Collapse Expand Varma Bhupatiraju Varma Bhupatiraju Varma Bhupatiraju Follow Location India Joined Oct 8, 2019 • Dec 21 '19 Dropdown menu Copy link Hide @Wern, I have same issue. Did you find any solutions? Collapse Expand Leonardo Silva Leonardo Silva Leonardo Silva Follow Joined Nov 26, 2020 • Nov 26 '20 Dropdown menu Copy link Hide Any answer on the subject, I have the same problem, a build example would be welcome. Collapse Expand tsayyed tsayyed tsayyed Follow Joined Dec 14, 2022 • Dec 14 '22 Dropdown menu Copy link Hide Any luck to create build for electron? Collapse Expand Evan Bacon Evan Bacon Evan Bacon Follow I work on Expo, React Native, and React Native for web. Also making Expo CLI, prebuilding, Expo config plugins, EAS Build, and EAS Submit. Location Austin, Texas Work Open Source Developer at Expo Joined Jul 9, 2019 • Nov 26 '19 Dropdown menu Copy link Hide Wow that looks awesome! When you use Expo to make Electron apps you also get an iOS and Android app as well though. Collapse Expand Ashutosh Khanduala Ashutosh Khanduala Ashutosh Khanduala Follow Joined May 11, 2020 • May 18 '25 Dropdown menu Copy link Hide Broken Link corrections in "TL;DR Examples" &, in "TL;DR: Here is an example repo." github.com/expo/examples/tree/6b26... in "docs = most recent info": github.com/expo/expo/blob/ef55d78d... Both links indicate the last commit in which those files exited in their respective repositories expo-electron-adapter repo: github.com/expo/expo-electron-adapter Collapse Expand Michael Lefkowitz Michael Lefkowitz Michael Lefkowitz Follow Location Austin, TX Work Software Engineering Manager at LawnStarter Joined Jan 10, 2017 • Dec 11 '19 Dropdown menu Copy link Hide Great post - I featured this on React Native Now newsletter #56 Collapse Expand Evan Bacon Evan Bacon Evan Bacon Follow I work on Expo, React Native, and React Native for web. Also making Expo CLI, prebuilding, Expo config plugins, EAS Build, and EAS Submit. Location Austin, Texas Work Open Source Developer at Expo Joined Jul 9, 2019 • Dec 11 '19 Dropdown menu Copy link Hide Awesome, thanks so much! Collapse Expand Nick Taylor Nick Taylor Nick Taylor Follow GitHub Star and Microsoft MVP. Developer Advocate & Software Engineer who live streams tech content solo & with community friends. Email nick@nickyt.co Location Montréal, Québec, Canada Education University of New Brunswick Work Developer Advocate at Pomerium Joined Mar 11, 2017 • Nov 27 '19 Dropdown menu Copy link Hide Great stuff. Thanks for sharing Evan. I've done a lot of React, but still haven't touched any of the native stuff, including Expo. Maybe I should start. 😎 Long Dao Long Dao Long Dao Follow Joined Jan 13, 2020 • Jan 13 '20 Dropdown menu Copy link Hide Yes it technically can, but simply isn't supported at all at the moment. Collapse Expand Kibranoz Kibranoz Kibranoz Follow Joined Nov 23, 2020 • Aug 4 '24 Dropdown menu Copy link Hide React Native desktop is available on Mac and Windows, but these aren't the only OS that exist on this planet. Some people use Linux Collapse Expand Doug Franklin Doug Franklin Doug Franklin Follow Intermediate Dev Working on Leveling Up Location Maryland Work Frontend Developer Joined Apr 16, 2019 • Aug 20 Dropdown menu Copy link Hide Are these projects all dead? Collapse Expand oussama benkortbi oussama benkortbi oussama benkortbi Follow Full Stack Developer Education Computer Science Degree - University of medea Work CEO SARL OSAF TECHNOLOGIES Joined Oct 6, 2021 • Oct 6 '21 Dropdown menu Copy link Hide really helpful post i may need to figure out how can i resize the window and make use of electron Collapse Expand Olivier Malige Olivier Malige Olivier Malige Follow Joined Nov 8, 2019 • Jan 21 '20 • Edited on Jan 21 • Edited Dropdown menu Copy link Hide Hello, I have problems with the implementation of Redux with this package... Do you have any idea? Thank you Collapse Expand Seanmclem Seanmclem Seanmclem Follow Developer looking to be awesome Location Floridia Work Senior web developer at Earth Joined Dec 27, 2018 • Nov 27 '19 Dropdown menu Copy link Hide Any way to run Expo app without having to download your JS bundle every time? Collapse Expand Aryan Goharzad Aryan Goharzad Aryan Goharzad Follow Joined Jun 10, 2019 • Nov 28 '19 Dropdown menu Copy link Hide Yes,are you referring to during production or dev? Collapse Expand Renja Schmakeit Renja Schmakeit Renja Schmakeit Follow Joined Jun 23, 2025 • Jun 23 '25 Dropdown menu Copy link Hide Since this package is no longer maintained, is there any alternative to this? Code of Conduct • Report abuse
Thanks for writing this guide!
I tried creating a demo app with it and it works in development mode.
The only problem is that the build doesn't seem to work.
I'm getting this error when compiling in mac:
I used the following command to compile:
yarn electron-webpack && yarn electron-builder --dir -c.compression=store -c.mac.identity=nullThere were no errors in the compilation process. My
babel.config.jslooks like:any ideas why this is? does
babel-preset-exposupport global module imports?again, thank you for this. I'll continue trying to figure out what's wrong.
Hi, there.
I'm getting a similar error. I've been trying to fix it by changing the syntax for that line from 'import from ...' to 'require('....')'.
It "worked" in the way that the error moved to the next "import" statement.
Is ES6 not working on the build?
Tried using other babel presets (babel/env, babel-react, etc...). With these ones, not even the building finishes.
Can't find any solution
@Wern, I have same issue. Did you find any solutions?
Any answer on the subject, I have the same problem, a build example would be welcome.
Any luck to create build for electron?
Wow that looks awesome! When you use Expo to make Electron apps you also get an iOS and Android app as well though.
Broken Link corrections
in "TL;DR Examples"
&, in "TL;DR: Here is an example repo."
in "docs = most recent info": github.com/expo/expo/blob/ef55d78d...
Both links indicate the last commit in which those files exited in their respective repositories
expo-electron-adapter repo: github.com/expo/expo-electron-adapter
Great post - I featured this on React Native Now newsletter #56
Awesome, thanks so much!
Great stuff. Thanks for sharing Evan. I've done a lot of React, but still haven't touched any of the native stuff, including Expo. Maybe I should start. 😎
Yes it technically can, but simply isn't supported at all at the moment.
React Native desktop is available on Mac and Windows, but these aren't the only OS that exist on this planet. Some people use Linux
Are these projects all dead?
really helpful post
i may need to figure out how can i resize the window and make use of electron
Hello, I have problems with the implementation of Redux with this package...
Do you have any idea?
Thank you
Any way to run Expo app without having to download your JS bundle every time?
Yes,are you referring to during production or dev?
Since this package is no longer maintained, is there any alternative to this?