pick up some easy-to-fix lint warnings

Reviewed By: svcscm

Differential Revision: D2938097

fb-gh-sync-id: e3373bd44267251d8351d5203be1c88676aa8685
shipit-source-id: e3373bd44267251d8351d5203be1c88676aa8685
This commit is contained in:
trave7er 2016-02-15 15:13:42 -08:00 committed by facebook-github-bot-8
parent d31b47c018
commit 4237a27ec9
11 changed files with 14 additions and 13 deletions

View File

@ -52,7 +52,7 @@ class DatePickerAndroid {
* * `date` (`Date` object or timestamp in milliseconds) - date to show by default
* * `minDate` (`Date` or timestamp in milliseconds) - minimum date that can be selected
* * `maxDate` (`Date` object or timestamp in milliseconds) - minimum date that can be selected
*
*
* Returns a Promise which will be invoked an object containing `action`, `year`, `month` (0-11),
* `day` if the user picked a date. If the user dismissed the dialog, the Promise will
* still be resolved with action being `DatePickerAndroid.dismissedAction` and all the other keys

View File

@ -19,6 +19,6 @@ const DatePickerAndroid = {
message: 'DatePickerAndroid is not supported on this platform.'
});
},
}
};
module.exports = DatePickerAndroid;

View File

@ -134,7 +134,8 @@ var cfg = {
items: true,
selected: true,
}
}
};
var DropdownPicker = requireNativeComponent('AndroidDropdownPicker', PickerAndroid, cfg);
var DialogPicker = requireNativeComponent('AndroidDialogPicker', PickerAndroid, cfg);

View File

@ -44,7 +44,7 @@ var Switch = React.createClass({
* Used to locate this view in end-to-end tests.
*/
testID: React.PropTypes.string,
/**
* Background color when the switch is turned off.
* @platform ios

View File

@ -62,6 +62,6 @@ class TimePickerAndroid {
* The dialog has been dismissed.
*/
static get dismissedAction() { return 'dismissedAction'; }
};
}
module.exports = TimePickerAndroid;

View File

@ -19,6 +19,6 @@ const TimePickerAndroid = {
message: 'TimePickerAndroid is not supported on this platform.'
});
},
}
};
module.exports = TimePickerAndroid;

View File

@ -213,9 +213,9 @@ var TouchableHighlight = React.createClass({
_hasPressHandler: function() {
return !!(
this.props.onPress ||
this.props.onPressIn ||
this.props.onPressOut ||
this.props.onPress ||
this.props.onPressIn ||
this.props.onPressOut ||
this.props.onLongPress
);
},

View File

@ -29,7 +29,7 @@ var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};
* Do not use unless you have a very good reason. All the elements that
* respond to press should have a visual feedback when touched. This is
* one of the primary reason a "web" app doesn't feel "native".
*
*
* > **NOTE**: TouchableWithoutFeedback supports only one child
* >
* > If you wish to have several child components, wrap them in a View.

View File

@ -53,7 +53,7 @@ const AccessibilityComponentType = [
const forceTouchAvailable = (UIManager.RCTView.Constants &&
UIManager.RCTView.Constants.forceTouchAvailable) || false;
const statics = {
AccessibilityTraits,
AccessibilityComponentType,

View File

@ -186,7 +186,7 @@ var WebView = React.createClass({
} else if (this.props.url) {
source.uri = this.props.url;
}
if (source.method === 'POST' && source.headers) {
console.warn('WebView: `source.headers` is not supported when using POST.');
} else if (source.method === 'GET' && source.body) {

View File

@ -18,7 +18,7 @@ var StyleSheet = require('StyleSheet');
var Text = require('Text');
var UIManager = require('UIManager');
var View = require('View');
var ScrollView = require('ScrollView')
var ScrollView = require('ScrollView');
var deprecatedPropType = require('deprecatedPropType');
var invariant = require('invariant');