mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Standardize on using AwesomeProject for AppRegistry calls.
Summary: We've noticed that many newcomers paste sample code straight into a project created using `react-native init AwesomeProject`, but the sample code assumes the user is creating a new project for each example. This PR makes it so that these samples can be pasted into the same project from the Getting Started. Closes https://github.com/facebook/react-native/pull/14264 Differential Revision: D5149746 Pulled By: hramos fbshipit-source-id: cae95ab5b7baf64ddd9fe12d342ad05f785bb381
This commit is contained in:
committed by
Facebook Github Bot
parent
ffa76d02dc
commit
b1ecb84c97
@@ -58,7 +58,7 @@ export default class IScrolledDownAndWhatHappenedNextShockedMe extends Component
|
||||
|
||||
// skip these lines if using Create React Native App
|
||||
AppRegistry.registerComponent(
|
||||
'IScrolledDownAndWhatHappenedNextShockedMe',
|
||||
'AwesomeProject',
|
||||
() => IScrolledDownAndWhatHappenedNextShockedMe);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user