Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.84 KB

InstallPrerequisites.md

File metadata and controls

48 lines (30 loc) · 1.84 KB

⚠️⚠️⚠️

React Native Desktop project support stopped..


Overview

react-native-desktop depends on cross-platform development tools, so prerequisites are pretty similar for all supported platforms. In nutshell, toolchain is the same as for original react-native + native dev tools (Qt framework) + build system based on cmake.

Windows

Recommended way to install required tools and libs is to use Chocolatey package manager.

choco install -y nodejs.install python2 cmake git

Download and run Qt 5.12.2 installer for Windows. During installation process on Select Components screen check Qt 5.12.2 / MinGW 5.3.0 32 bit, Qt 5.12.2 / Qt WebEngine and Tools / MinGW 5.3.0 components. Finish installation process.

Mac OS

Recommended way to install required tools and libs is to use Homebrew package manager.

brew install node watchman cmake

Download and run Qt 5.12.2 installer for Mac OS. During installation process on Select Components screen check Qt 5.12.2 / macOS and Qt 5.12.2 / Qt WebEngine components. Finish installation process.

Ubuntu

sudo apt-get install -y git cmake nodejs-legacy npm gnome-terminal

Download and run Qt 5.12.2 installer for Linux. Finish installation process.

Fedora

sudo dnf install -y nodejs npm cmake git qt5-devel gnome-terminal

All platforms

Make sure that installed Qt's qmake tool is available in your PATH. On mac and linux you can add following to .bash_profile:

export PATH=$PATH:/Users/MyUser/Qt/5.12.2/COMPILER_NAME/bin