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 коммит произвёл facebook-github-bot-4
Родитель 8ec052a727
Коммит 0a3694ce48
7 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

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

Просмотреть файл

@ -48,7 +48,7 @@ var ViewStylePropTypes = {
shadowOpacity: ReactPropTypes.number, shadowOpacity: ReactPropTypes.number,
shadowRadius: 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). * [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. * 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. * Only supported on Android 5.0+, has no effect on earlier versions.

Просмотреть файл

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

Просмотреть файл

@ -130,7 +130,7 @@ class LinkingIOS {
* Determine whether or not an installed app can handle a given URL. * 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 * 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`. * inside `Info.plist`.
*/ */
static canOpenURL(url: string, callback: Function) { static canOpenURL(url: string, callback: Function) {

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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