Skip to content

Commit b5c4f1c

Browse files
yungstersmacdoum1
authored andcommitted
YellowBox: Restore ES5 Compatibility
Reviewed By: sahrens Differential Revision: D8421561 fbshipit-source-id: c2b8d430f4d0c9ce0d5177f0af5eb5f404916024
1 parent 0d23e42 commit b5c4f1c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Libraries/YellowBox/YellowBox.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,11 @@ if (__DEV__) {
130130
}
131131
};
132132

133-
function registerWarning(...args): void {
133+
const registerWarning = (...args): void => {
134134
YellowBoxRegistry.add({args, framesToPop: 2});
135-
}
135+
};
136136
} else {
137-
// eslint-disable-next-line no-shadow
138-
YellowBox = class YellowBox extends React.Component<Props> {
137+
YellowBox = class extends React.Component<Props> {
139138
static ignoreWarnings(patterns: $ReadOnlyArray<string>): void {
140139
// Do nothing.
141140
}

0 commit comments

Comments
 (0)