mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
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:
parent
f0c79bac31
commit
1ae9ed358f
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user