Skip to content

Commit d0219a0

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: A wild YellowBox has appeared!
Summary: Replaces the existing `YellowBox` with a modern one. Here are the notable changes: - Sort warnings by recency (with most recent on top). - Group warnings by format string if present. - Present stack traces similar to RedBox. - Show status of loading source maps. - Support inspecting each occurrence of a warning. - Fixed a bunch of edge cases and race conditions. Reviewed By: TheSavior Differential Revision: D8345180 fbshipit-source-id: b9e10d526b262c3985bbea639ba2ea0e7cad5081
1 parent f8b4850 commit d0219a0

25 files changed

+2306
-558
lines changed

Libraries/ReactNative/AppContainer.js

+7
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,11 @@ const styles = StyleSheet.create({
127127
},
128128
});
129129

130+
if (__DEV__) {
131+
if (!global.__RCTProfileIsProfiling) {
132+
const YellowBox = require('YellowBox');
133+
YellowBox.install();
134+
}
135+
}
136+
130137
module.exports = AppContainer;

0 commit comments

Comments
 (0)