Changed registerComponent name to maintain tutorial flow.
Summary: Changed the registerComponent name from 'HelloWolrdApp' to 'AwesomeProject' because the instructions says paste it into your index.ios.js but that doesn't actually work, unless the component is named 'AwesomeProject'. First timers shouldn't have to deal with a big bad red screen of death. 😅 Closes https://github.com/facebook/react-native/pull/13709 Differential Revision: D5010357 Pulled By: javache fbshipit-source-id: 101bec8e9d98fa97b3cd4a2a8e81df1f87381216
This commit is contained in:
parent
c7d37a208a
commit
d35fef8bbb
|
@ -21,7 +21,7 @@ In accordance with the ancient traditions of our people, we must first build an
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { AppRegistry, Text } from 'react-native';
|
import { AppRegistry, Text } from 'react-native';
|
||||||
|
|
||||||
class HelloWorldApp extends Component {
|
class AwesomeProject extends Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Text>Hello world!</Text>
|
<Text>Hello world!</Text>
|
||||||
|
@ -29,7 +29,7 @@ class HelloWorldApp extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);
|
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are feeling curious, you can play around with sample code directly in the web simulators. You can also paste it into your `index.ios.js` or `index.android.js` file to create a real app on your local machine.
|
If you are feeling curious, you can play around with sample code directly in the web simulators. You can also paste it into your `index.ios.js` or `index.android.js` file to create a real app on your local machine.
|
||||||
|
|
Loading…
Reference in New Issue