fix several lint warnings

Summary: fix some ling warnings from several files
Closes https://github.com/facebook/react-native/pull/4450

Reviewed By: svcscm

Differential Revision: D2707606

Pulled By: mkonicek

fb-gh-sync-id: 410ccacf061ac7b0f6e44d1a5e4621a9d1d606fc
This commit is contained in:
Huang Yu 2015-12-01 07:24:14 -08:00 committed by facebook-github-bot-4
parent 8ec052a727
commit 0a3694ce48
7 changed files with 4 additions and 8 deletions

View File

@ -232,7 +232,7 @@ var MapView = React.createClass({
* @platform ios
*/
image: Image.propTypes.source,
/**
* annotation id
*/

View File

@ -48,7 +48,7 @@ var ViewStylePropTypes = {
shadowOpacity: ReactPropTypes.number,
shadowRadius: ReactPropTypes.number,
/**
* (Android-only) Sets the elevation of a view, using Android's underlying
* (Android-only) Sets the elevation of a view, using Android's underlying
* [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation).
* This adds a drop shadow to the item and affects z-order for overlapping views.
* Only supported on Android 5.0+, has no effect on earlier versions.

View File

@ -53,7 +53,7 @@ function setUpConsole() {
* For more info on that particular case, see:
* https://github.com/facebook/react-native/issues/934
*/
function polyfillGlobal(name, newValue, scope=GLOBAL) {
function polyfillGlobal(name, newValue, scope = GLOBAL) {
var descriptor = Object.getOwnPropertyDescriptor(scope, name) || {
// jest for some bad reasons runs the polyfill code multiple times. In jest
// environment, XmlHttpRequest doesn't exist so getOwnPropertyDescriptor

View File

@ -130,7 +130,7 @@ class LinkingIOS {
* Determine whether or not an installed app can handle a given URL.
* The callback function will be called with `bool supported` as the only argument
*
* NOTE: As of iOS 9, your app needs to provide a `LSApplicationQueriesSchemes` key
* NOTE: As of iOS 9, your app needs to provide a `LSApplicationQueriesSchemes` key
* inside `Info.plist`.
*/
static canOpenURL(url: string, callback: Function) {

View File

@ -13,7 +13,6 @@
var FormData = require('FormData');
var RCTNetworking = require('RCTNetworking');
var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
var XMLHttpRequestBase = require('XMLHttpRequestBase');

View File

@ -15,13 +15,11 @@
var NativeMethodsMixin = require('NativeMethodsMixin');
var React = require('React');
var ReactChildren = require('ReactChildren');
var ReactNativeViewAttributes = require('ReactNativeViewAttributes');
var RCTPickerIOSConsts = require('NativeModules').UIManager.RCTPicker.Constants;
var StyleSheet = require('StyleSheet');
var View = require('View');
var requireNativeComponent = require('requireNativeComponent');
var merge = require('merge');
var PICKER = 'picker';

View File

@ -11,7 +11,6 @@
*/
'use strict';
var Platform = require('Platform');
var React = require('React');
var StyleSheet = require('StyleSheet');
var { TestModule, UIManager } = require('NativeModules');