Fix typo and add comments to the example app

This commit is contained in:
Tadeu Zagallo 2015-03-27 20:44:20 +00:00
parent b00d4b394f
commit 9b0c2a4d30
3 changed files with 6 additions and 33 deletions

View File

@ -31,6 +31,11 @@ var MovieScreen = require('./MovieScreen');
var fetch = require('fetch');
/**
* This is for demo purposes only, and rate limited.
* In case you want to use the Rotten Tomatoes' API on a real app you should
* create an account at http://developer.rottentomatoes.com/
*/
var API_URL = 'http://api.rottentomatoes.com/api/public/v1.0/';
var API_KEYS = [
'7waqfqbprs7pajbz28mqf6vz',

File diff suppressed because one or more lines are too long

View File

@ -198,7 +198,7 @@ Add the following constants to the top of the file (typically below the requires
```javascript
/**
* For quota reasons we replaced the Roten Tomatoes' API with a sample data of
* For quota reasons we replaced the Rotten Tomatoes' API with a sample data of
* their very own API that lives in React Native's Gihub repo.
*/
var REQUEST_URL = 'https://raw.githubusercontent.com/facebook/react-native/master/docs/MoviesExample.json';