Skip to content

Commit

Permalink
Changed registerComponent name to maintain tutorial flow.
Browse files Browse the repository at this point in the history
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 facebook/react-native#13709

Differential Revision: D5010357

Pulled By: javache

fbshipit-source-id: 101bec8e9d98fa97b3cd4a2a8e81df1f87381216
  • Loading branch information
MrSunshyne authored and facebook-github-bot committed May 5, 2017
1 parent c7d37a2 commit d35fef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ In accordance with the ancient traditions of our people, we must first build an
import React, { Component } from 'react';
import { AppRegistry, Text } from 'react-native';
class HelloWorldApp extends Component {
class AwesomeProject extends Component {
render() {
return (
<Text>Hello world!</Text>
);
}
}
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.
Expand Down

0 comments on commit d35fef8

Please sign in to comment.