![]() ![]() 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)". When USB Debugging is enabled, you can plug in your device and run the code snippet given above. react-native run-android Before you can run your app on Android device, you need to enable USB Debugging inside the Developer Options. You will need Xcode for iOS and Android Studio for android, node.js, the React Native command line tools, and Watchman. 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 We can run the React Native app on Android platform by running the following code in the terminal. ![]() 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. ![]()
0 Comments
Leave a Reply. |