Add React Native Web Player to most component basics

Summary:
> ListView is not supported by React Native Web as of yet, so it will not have it.
Closes https://github.com/facebook/react-native/pull/8331

Differential Revision: D3472019

Pulled By: lacker

fbshipit-source-id: e5fb430b6c8f4d437943c159beb00b9d9252c92d
This commit is contained in:
Joel Marcey
2016-06-22 15:02:02 -07:00
committed by Facebook Github Bot
parent c95d3ef147
commit d464f1d1c2
5 changed files with 15 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ The most basic component in React Native is the [`Text`](/react-native/docs/text
This example displays the `string` `"Hello World!"` on the device.
```JavaScript
```ReactNativeWebPlayer
import React from 'react';
import { AppRegistry, Text } from 'react-native';
@@ -27,7 +27,7 @@ AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
In this slightly more advanced example we will display the `string` `"Hello World"` retrieved from this.state on the device and stored in the `text` variable. The value of the `text` variable is rendered by using `{text}`.
```JavaScript
```ReactNativeWebPlayer
import React from 'react';
import { AppRegistry, Text } from 'react-native';
@@ -48,4 +48,4 @@ var AwesomeProject = React.createClass({
// App registration and rendering
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
```
```