Obs: Always check if the version on android/app/build. 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. On iOS, use the built-in QR code scanner of the default iOS Camera app. On Android, use the Expo Go app to scan the QR code from your terminal to open your project. You build a real mobile app that's indistinguishable from an app built using Objective-C or Java. Running your React Native application Install the Expo Go app on your iOS or Android phone and connect to the same wireless network as your computer. 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.
0 Comments
Leave a Reply. |