From d35fef8bbbbe04adb4acc668abadb612824d9af6 Mon Sep 17 00:00:00 2001 From: Sandeep Ramgolam Date: Fri, 5 May 2017 12:17:35 -0700 Subject: [PATCH] Changed registerComponent name to maintain tutorial flow. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- docs/Tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Tutorial.md b/docs/Tutorial.md index e5ad34103..e25077352 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -21,7 +21,7 @@ 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 ( Hello world! @@ -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.