We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d3533 commit e8087ecCopy full SHA for e8087ec
Libraries/YellowBox/YellowBox.js
@@ -130,12 +130,11 @@ if (__DEV__) {
130
}
131
};
132
133
- function registerWarning(...args): void {
+ const registerWarning = (...args): void => {
134
YellowBoxRegistry.add({args, framesToPop: 2});
135
- }
+ };
136
} else {
137
- // eslint-disable-next-line no-shadow
138
- YellowBox = class YellowBox extends React.Component<Props> {
+ YellowBox = class extends React.Component<Props> {
139
static ignoreWarnings(patterns: $ReadOnlyArray<string>): void {
140
// Do nothing.
141
0 commit comments