But can we build a native desktop application using React? Yes! using Proton Native. What Proton Native does for desktop app development is similar to what React Native has done for mobile. It uses native components to build native cross-platform desktop applications.
So here we are going to discuss the steps in installing Proton Native on our Ubuntu system.
1. Install Nodejs
In the tutorial, we are going to install Proton Native using the Node Package Manager(NPM). So first, we need to install Nodejs on our system.NPM will be installed with Nodejs itself.
So, the latest version of Node.js can be installed on our system using the commands below. Currently, 12.4.0 is the latest version of Nodejs.
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y nodejs
2. Update NPM(OPTIONAL)
Node Package Manager(NPM) will be installed with the Nodejs itself. But if we can update it to the latest version using the below command.
sudo npm install npm@latest -g
3. Install Proton Native
We have installed Nodejs. Now we can install Proton Native using Node Package Manager(NPM).
npm install -g create-proton-app
4. Creating a New Proton Native Application
After successful installation of Proton Native, we can now create a new project using create-proton-app.
We can combine the steps 3 and 4 with a single NPX( package runner tool that comes with NPM 5.2+) command.
npx create-proton-app awesome-project
5. Running Our App
Now enter into the project we have created and start our application with the commands below.
cd awesome-project npm start
This will open a new application window on our windows system.
Have a nice code!