
Npx gives us the ability to use the create-react-app package without having to first install it on our computer, which is very convenient. Note: You can check what npm version you have by running in your terminal npm -v To create a new React project, we can use the tool npx, provided you have an npm version of at least 5.2. To use Create React App, we first need to open our terminal or command line on our computer. I highly recommend using the editor Visual Studio Code.
A good code editor to work with our project files. You need to have an npm version of at least 5.2. It is automatically included in your installation of Node. Create React App requires a Node version of at least 10. Want to learn how to create impressive, production-ready apps with React using Create React App? Check out The React Bootcamp. Throughout this guide, I've also included a lot of helpful tips I've learned through building apps with Create React App to make your workflow even easier. We're going to cover, step-by-step, how to use all of the major features of Create React App to quickly and easily build your own React projects. It is one of the easiest ways to spin up a new React project and is an ideal choice to use for your own personal projects as well as for serious, large-scale applications. Obs: Always check if the version on android/app/build.The package Create React App makes creating and developing React apps a breeze. In case it is not, click on the checkbox and then "Apply".ĥ) Start a project Example app init react-native init ReactNativeDemo & cd ReactNativeDemo Select "SDK Platforms" from within the SDK Manager and you should see a blue checkmark next to "Android 7.0 (Nougat)". Run the npm to install the react-native sudo npm install -g react-native-cliĢ) Setup Java sudo apt-get install lib32stdc++6 lib32z1 openjdk-7-jdkģ) Setup Android Studio: Android SDK or Android Studio Īndroid SDK e ENV export ANDROID_HOME=/YOUR/LOCAL/ANDROID/SDKĮxport PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools If node command is unavailable sudo ln -s /usr/bin/nodejs /usr/bin/nodeĪlternatives NodeJS instalations: curl -sL | sudo -E bash -Ĭheck if you have the current version node -v
Source: React Native website Setup for Linux (Ubuntu)ġ) Setup Node.JS Start the terminal and run the following commands to install nodeJS: curl -sL | sudo -E bash. It is open-source and maintained by Facebook. You just put those building blocks together using JavaScript and React. React Native uses the same fundamental UI building blocks as regular iOS and Android apps. You build a real mobile app that's indistinguishable from an app built using Objective-C or Java. With React Native, you don't build a “mobile web app”, an “HTML5 app”, or a “hybrid app”. It uses the same design as React, letting you compose a rich mobile UI from declarative components. React Native lets you build mobile apps using only JavaScript.