mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-27 22:54:46 +08:00
Use AwesomeProject instead of SampleApp in the final tutorial code
This commit is contained in:
@@ -384,7 +384,7 @@ var PAGE_SIZE = 25;
|
||||
var PARAMS = '?apikey=' + API_KEY + '&page_limit=' + PAGE_SIZE;
|
||||
var REQUEST_URL = API_URL + PARAMS;
|
||||
|
||||
var SampleApp = React.createClass({
|
||||
var AwesomeProject = React.createClass({
|
||||
getInitialState: function() {
|
||||
return {
|
||||
dataSource: new ListView.DataSource({
|
||||
@@ -475,5 +475,5 @@ var styles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
AppRegistry.registerComponent('SampleApp', () => SampleApp);
|
||||
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user