Installing package manager Homebrew
Paste that at a Terminal prompt.
Download it using link below or find it on Mac App Store
https://developer.apple.com/download/
NOTE: If you have Xcode-beta.app installed along with production version of Xcode.app, make sure you are using production version of
Installing Android environment
You will need Xcode for iOS and Android Studio for android, node.js, the React Native command line tools, and Watchman.
We recommend installing node and watchman via Homebrew.
If you plan to make changes in Java code, we recommend Gradle Daemon which speeds up the build.
Testing your React Native Installation
Use the React Native command line tools to generate a new React Native project called "AwesomeProject", then run react-native run-ios inside the newly created folder.
Modifying your app
Now that you have successfully run the app, let's modify it.
source: Getting Started - React-Native
brew
Paste that at a Terminal prompt.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Installing Xcode IDEDownload it using link below or find it on Mac App Store
https://developer.apple.com/download/
NOTE: If you have Xcode-beta.app installed along with production version of Xcode.app, make sure you are using production version of
xcodebuild
tool. You can set it with:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
Installing Android environment
-
Git
git
*If you have installed XCode, Git is already installed, otherwise run the following
brew install git
-
Latest JDK
-
Android Studio
Choose a Custom installation
Choose both Performance and Android Virtual Device
After installation, choose Configure -> SDK Manager from the Android Studio welcome window.
In the SDK Platforms window, choose Show Package Details and under Android 6.0 (Marshmallow), make sure that Google APIs, Intel x86 Atom System Image, Intel x86 Atom_64 System Image, and Google APIs Intel x86 Atom_64 System Image are checked.
In the SDK Tools window, choose Show Package Details and under Android SDK Build Tools, make sure that Android SDK Build-Tools 23.0.1 is selected.
-
Environment Variable
ANDROID_HOME
Ensure the ANDROID_HOME environment variable points to your existing Android SDK. To do that, add this to your ~/.bashrc, ~/.bash_profile (or whatever your shell uses) and re-open your terminal:
If you installed the SDK without Android Studio, then it may be something like: /usr/local/opt/android-sdk
export ANDROID_HOME=~/Library/Android/sdk
You will need Xcode for iOS and Android Studio for android, node.js, the React Native command line tools, and Watchman.
We recommend installing node and watchman via Homebrew.
brew install node
brew install watchman
Watchman is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance. It is optional.Node comes with npm, which lets you install the React Native command line interface.
npm install -g react-native-cli
If you get a permission error, try with sudo:sudo npm install -g react-native-cli.
For iOS the easiest way to install Xcode is via the Mac App Store.
And for android download and install Android Studio.If you plan to make changes in Java code, we recommend Gradle Daemon which speeds up the build.
Testing your React Native Installation
Use the React Native command line tools to generate a new React Native project called "AwesomeProject", then run react-native run-ios inside the newly created folder.
react-native init AwesomeProject
cd AwesomeProject
react-native run-ios
You should see your new app running in the iOS Simulator shortly.
react-native run-ios is just one way to run your app - you can also run
it directly from within Xcode or Nuclide.Modifying your app
Now that you have successfully run the app, let's modify it.
- Open index.ios.js or index.android.js in your text editor of choice and edit some lines.
- Hit Command⌘ + R in your iOS Simulator to reload the app and see your change! That's it!
source: Getting Started - React-Native
ReplyDeleteThanks a lot for your help on this. I look forward to reading more articles from you!
Appium Training in Chennai
Mobile Appium Coaching in Chennai
Appium Training in OMR
JMeter Training Course
JMeter Course
core java training in chennai
C C++ Training in Chennai
javascript training in chennai
Nice blog!! I hope you will share more info like this. I will use this for my studies and research.
ReplyDeleteTally Course in Chennai
Tally Classes in Chennai
Angularjs Training in Chennai
CCNA Training in Chennai
gst training in chennai
Salesforce Training in Chennai
Tally Training in Chennai
Informative blog! it was very useful for me.Thanks for sharing. Do share more ideas regularly.
ReplyDeleteSpoken English Classes in Chennai
Best Spoken English Classes in Chennai
IELTS Coaching in Chennai
IELTS Coaching Centre in Chennai
English Speaking Classes in Mumbai
English Speaking Course in Mumbai
IELTS Classes in Mumbai
IELTS Coaching in Mumbai
I would definitely thank the admin of this blog for sharing this information with us. Waiting for more updates from this blog admin.
ReplyDeleteMachine Learning course in Chennai
Machine Learning Training in Chennai
Azure Training in Chennai
Cloud Computing Training in Chennai
RPA Training in Chennai
UiPath Training in Chennai
I wanted to thank for sharing this article and I have bookmarked this page to check out new stuff.
ReplyDeleteTally course in Chennai
Tally classes in Chennai
Tally Training in Chennai
Excellent post, thanks for this. I gathered lots of information from this and I am happy about it. Do share more updates.
ReplyDeleteReactJS Training in Chennai
ReactJS course
ReactJS Certification
Il nostro team si occupa della realizzazione di siti web, anche e-commerce app Android.
ReplyDeleteGreat Article
ReplyDeleteAndroid Final Year Project Ideas for Computer Science
FInal Year Project Centers in Chennai
JavaScript Training in Chennai
Java Training in Chennai
Thank you for posting this amazing information.
ReplyDeletetally training center in delhi
tally training center in Noida
Nice blog!! I hope you will share more information like this. This will be more useful for my studies and research.
ReplyDeleteDevOps Training in Chennai
DevOps foundation certification
DevOps certification
Data Science Training in Chennai
DevOps Training in Anna Nagar
DevOps Training in Vadapalani
DevOps Training in Guindy
DevOps Training in Thiruvanmiyur
This blog is very interesting to read, this contains more useful information, Keep sharing more blogs.
ReplyDeleteArray in python
oops in python
Python frameworks
goto statement in python
Selenium interview questions and answers
This is so helpful to me. Keep updating more articles.
ReplyDeleteAccounting Software Singapore
PSG Grant Accounting Software
E invoicing Singapore