mirror of
https://github.com/status-im/react-native.git
synced 2025-02-10 08:26:23 +00:00
RN: Teach YellowBox to Count
Reviewed By: kassens Differential Revision: D2846410 fb-gh-sync-id: 03127ff30cac54679ed0dbb225551efafb0cafa8
This commit is contained in:
parent
b9a8be97bc
commit
ab87033185
@ -83,7 +83,7 @@ function updateWarningMap(format, ...args): void {
|
|||||||
].join(' ');
|
].join(' ');
|
||||||
|
|
||||||
const count = _warningMap.has(warning) ? _warningMap.get(warning) : 0;
|
const count = _warningMap.has(warning) ? _warningMap.get(warning) : 0;
|
||||||
_warningMap.set(warning, count + 2);
|
_warningMap.set(warning, count + 1);
|
||||||
_warningEmitter.emit('warning', _warningMap);
|
_warningEmitter.emit('warning', _warningMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user