Fix lint errors and warnings

Summary:
Fix the following problems resulting from running `npm run lint`:

```
Examples/Movies/SearchScreen.js
  118:4  error  'fetch' is not defined  no-undef
  177:4  error  'fetch' is not defined  no-undef

Examples/UIExplorer/MapViewExample.js
  32:1  warning  Missing semicolon  semi

Examples/UIExplorer/NavigatorIOSColorsExample.js
  48:26  warning  ['lightContent'] is better written in dot notation  dot-notation

Examples/UIExplorer/TabBarIOSExample.js
  81:16  warning  Trailing spaces not allowed  no-trailing-spaces

Examples/UIExplorer/TextInputExample.js
  390:7  warning  Missing semicolon  semi

✖ 6 problems
```
Closes https://github.com/facebook/react-native/pull/1254
Github Author: Eric Sauter <esauter@lgscout.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
Eric Sauter 2015-05-14 08:58:31 -07:00
parent babdc21614
commit 711dd6602e
6 changed files with 5 additions and 5 deletions

View File

@ -16,6 +16,7 @@
"document": false,
"escape": false,
"exports": false,
"fetch": false,
"global": false,
"jest": false,
"Map": true,

View File

@ -27,4 +27,3 @@ export type ExampleModule = {
examples: Array<Example>;
external?: bool;
};

View File

@ -29,7 +29,7 @@ var regionText = {
longitude: '0',
latitudeDelta: '0',
longitudeDelta: '0',
}
};
var MapRegionInput = React.createClass({

View File

@ -45,7 +45,7 @@ var NavigatorIOSColors = React.createClass({
render: function() {
// Set StatusBar with light contents to get better contrast
StatusBarIOS.setStyle(StatusBarIOS.Style['lightContent']);
StatusBarIOS.setStyle(StatusBarIOS.Style.lightContent);
return (
<NavigatorIOS

View File

@ -78,7 +78,7 @@ var TabBarExample = React.createClass({
this.setState({
selectedTab: 'greenTab',
presses: this.state.presses + 1
});
});
}}>
{this._renderContent('#21551C', 'Green Tab')}
</TabBarIOS.Item>

View File

@ -387,7 +387,7 @@ exports.examples = [
<View style={styles.multilineChild}/>
</TextInput>
</View>
)
);
}
}
];