diff --git a/Libraries/YellowBox/YellowBox.js b/Libraries/YellowBox/YellowBox.js index 10d8ba4a007..16d1b453cf9 100644 --- a/Libraries/YellowBox/YellowBox.js +++ b/Libraries/YellowBox/YellowBox.js @@ -130,12 +130,11 @@ if (__DEV__) { } }; - function registerWarning(...args): void { + const registerWarning = (...args): void => { YellowBoxRegistry.add({args, framesToPop: 2}); - } + }; } else { - // eslint-disable-next-line no-shadow - YellowBox = class YellowBox extends React.Component { + YellowBox = class extends React.Component { static ignoreWarnings(patterns: $ReadOnlyArray): void { // Do nothing. }