mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
Change all calls to no-console from no-console-disallow
Reviewed By: TheSavior Differential Revision: D5944700 fbshipit-source-id: cdd78d1b32fa98d8a792a39ccc3cb37241ab4366
This commit is contained in:
parent
ebb42ee1b6
commit
d3e1a21399
@ -614,7 +614,7 @@ const ScrollView = createReactClass({
|
|||||||
_handleScroll: function(e: Object) {
|
_handleScroll: function(e: Object) {
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
if (this.props.onScroll && this.props.scrollEventThrottle == null && Platform.OS === 'ios') {
|
if (this.props.onScroll && this.props.scrollEventThrottle == null && Platform.OS === 'ios') {
|
||||||
console.log( // eslint-disable-line no-console-disallow
|
console.log( // eslint-disable-line no-console
|
||||||
'You specified `onScroll` on a <ScrollView> but not ' +
|
'You specified `onScroll` on a <ScrollView> but not ' +
|
||||||
'`scrollEventThrottle`. You will only receive one event. ' +
|
'`scrollEventThrottle`. You will only receive one event. ' +
|
||||||
'Using `16` you get all the events but be aware that it may ' +
|
'Using `16` you get all the events but be aware that it may ' +
|
||||||
|
@ -105,9 +105,9 @@ if (!global.__fbDisableExceptionsManager) {
|
|||||||
try {
|
try {
|
||||||
ExceptionsManager.handleException(e, isFatal);
|
ExceptionsManager.handleException(e, isFatal);
|
||||||
} catch (ee) {
|
} catch (ee) {
|
||||||
/* eslint-disable no-console-disallow */
|
/* eslint-disable no-console */
|
||||||
console.log('Failed to print error: ', ee.message);
|
console.log('Failed to print error: ', ee.message);
|
||||||
/* eslint-enable no-console-disallow */
|
/* eslint-enable no-console */
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable no-console-disallow */
|
/* eslint-disable no-console */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* Intentional info-level logging for clear separation from ad-hoc console debug logging.
|
* Intentional info-level logging for clear separation from ad-hoc console debug logging.
|
||||||
*/
|
*/
|
||||||
function infoLog(...args) {
|
function infoLog(...args) {
|
||||||
return console.log(...args); // eslint-disable-line no-console-disallow
|
return console.log(...args); // eslint-disable-line no-console
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = infoLog;
|
module.exports = infoLog;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user