react-native/website
Brent Vatne b8542397cd Move away from rnplay to snack, with embedded examples!
Summary:
React Native Playground has been sunset, so I've replaced the examples that previously used it with examples using [Snack](http://snack.expo.io/).

The examples are directly embedded and can be edited live to see updates. The code itself is also in the docs, so we can easily update the docs in one place and we don't have to actually go to a saved app on Snack and update it there.

Run it locally, go to the `Animations` section and the `Direct Manipulation` section.

![screen shot 2017-04-03 at 6 29 51 pm](https://cloud.githubusercontent.com/assets/90494/24638271/ff3ad044-189b-11e7-845d-24b2fb612d95.png)

Open it on your phone, notice that it falls back to just showing plain code.

<img src="https://cloud.githubusercontent.com/assets/90494/24638547/203ec8fc-189e-11e7-99c8-dfabff949f8d.PNG" width="250">

- Get rid of the Expo new user experience dialog that you see when you open a Snack -- is this a dealbreaker
Closes https://github.com/facebook/react-native/pull/13285

Differential Revision: D4828011

Pulled By: hramos

fbshipit-source-id: 684ad24a14deb72abb8587ffbb726d316f126d75
2017-04-05 19:02:48 -07:00
..
core Move away from rnplay to snack, with embedded examples! 2017-04-05 19:02:48 -07:00
jsdocs Replace @provides with @providesModule 2017-02-02 08:58:33 -08:00
layout preserve inline components in prop type doc gen 2017-03-07 18:04:05 -08:00
server Add OSS website test, clean up test names, remove website dependency on sass 2017-03-30 15:30:41 -07:00
src/react-native Move away from rnplay to snack, with embedded examples! 2017-04-05 19:02:48 -07:00
.gitignore Generate Atom feed for the React Native blog. 2016-10-28 13:28:37 -07:00
README.md Fix instructions so react-native packages are installed first 2016-06-01 17:58:22 -07:00
package.json Add OSS website test, clean up test names, remove website dependency on sass 2017-03-30 15:30:41 -07:00
publish-gh-pages.js Deploy showcase, support when building gh-pages on master. 2016-09-20 15:58:48 -07:00
setup.sh Docs for website setup 2015-12-28 12:47:09 -08:00
showcase.json Add UberEATS article to showcase 2017-04-04 10:20:18 -07:00

README.md

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