mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
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:
committed by
Facebook Github Bot
parent
c95d3ef147
commit
d464f1d1c2
@@ -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);
|
||||
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user