Update web player in docs for custom registerComponent names

Summary:
In the web player in the docs, allows `AppRegistry.registerComponent('name', App)` to use *anything* for `'name'`. It is ignored by the web player - last registration wins.
Closes https://github.com/facebook/react-native/pull/8383

Differential Revision: D3478922

Pulled By: JoelMarcey

fbshipit-source-id: 3d1d96e0ad41216d29134ba384896e86d0cd2b32
This commit is contained in:
Devin Abbott 2016-06-23 17:39:48 -07:00 committed by Facebook Github Bot 3
parent f0c79bac31
commit 1ae9ed358f

View File

@ -44,7 +44,7 @@ var WebPlayer = React.createClass({
},
render: function() {
var hash = `#code=${encodeURIComponent(this.props.children)}&runApp=AwesomeProject`;
var hash = `#code=${encodeURIComponent(this.props.children)}`;
if (this.props.params) {
hash += `&${this.props.params}`;
@ -57,7 +57,7 @@ var WebPlayer = React.createClass({
style={{marginTop: 4}}
width='880'
height={this.parseParams(this.props.params).platform === 'android' ? '425' : '420'}
data-src={`//cdn.rawgit.com/dabbott/react-native-web-player/v0.1.2/index.html${hash}`}
data-src={`//cdn.rawgit.com/dabbott/react-native-web-player/v0.1.3/index.html${hash}`}
frameBorder='0'
/>
</div>