react-native/website
Dirk Stoop 58aca39105 Fix #14566, image in second code sample not rendering
Summary:
Fixes #14566, as suggested by hramos. Only change from our convo is that I set the height to 180 in this pull request instead of 240. This to respect the aspect ratio of the source image.

- run website, visit in browser, verify that second example code section renders correctly
- copy and paste example code of second example into the App.js of a freshly created react native app
- prepend "export default" to line 4 of the pasted code
- run the app for ios or android (npm start ios)
- verify that the image of that terrible high-five actually renders in the app now

Closes https://github.com/facebook/react-native/pull/14571

Differential Revision: D5330093

Pulled By: hramos

fbshipit-source-id: a0afcd16d07ac25080af41f9619df0703f11b152
2017-06-27 11:16:13 -07:00
..
core Update ListView Basics to use FlatList, SectionList. 2017-06-02 12:45:59 -07:00
jsdocs remove disableAutomock from jest tests (new default) @bypass-lint 2017-06-13 15:04:09 -07:00
layout Remove examples from API/Components 2017-04-26 20:35:57 -07:00
server Improve view props and style stuff. 2017-06-01 01:15:42 -07:00
src/react-native Fix #14566, image in second code sample not rendering 2017-06-27 11:16:13 -07:00
.gitignore Generate Atom feed for the React Native blog. 2016-10-28 13:28:37 -07:00
README.md Update guidelines. 2017-06-14 15:16:59 -07:00
package.json Upgrade prop-types and fix RN website yarnfile 2017-04-21 13:16:15 -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
showcase.json Add Wix.com 2017-06-20 19:22:57 -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

The website at https://facebook.github.io/react-native is automatically deployed by our continuous integration infrastructure, specifically CircleCI. This is configured in circle.yml in the root of the repository.