mirror of
https://github.com/status-im/react-native.git
synced 2025-01-30 03:05:44 +00:00
cf4891c6bd
Summary: I am starting fresh on a new Mac and took another stab at the instructions. - Java SDK 7 seems to work just fine. - Adjusted Custom Android Studio installation instructions to use bare minimum required. - Updated AVD configuration instructions with necessary changes to run AVD the first time. - Added note on using real devices. - Removed notes warning against use of API Level 23, these do not belong on a Getting Started guide. - Added step to install Xcode Command Line Tools. - Use `.profile` over `.bashrc` as the latter is shell-specific and is not loaded on login shells (e.g. new Terminal windows). `.profile` will work on bash, however, which is the default macOS shell. - Added screenshots. Went through steps for setting up RN for iOS as well as Android on a new Mac. Ended with apps running on the iOS Simulator and a AVD. Generated website and verified instructions rendered correctly for each of the OS/device permutations. Closes https://github.com/facebook/react-native/pull/12272 Differential Revision: D4637737 Pulled By: hramos fbshipit-source-id: 5d322e4d55dbabc70f70471622a2f379ac6230cb
Install prerequisites
Before running the website, make sure you've run the following:
git clone https://github.com/facebook/react-native.git
cd react-native
npm install
Run the website server
The first time, get all the website dependencies loaded via
cd website
npm install
Then, run the server via
npm start
open http://localhost:8079/react-native/index.html
Anytime you change the contents, just refresh the page and it's going to be updated.
Publish the website
cd website
npm run publish-website