Skip to content

Commit

Permalink
RN: A wild YellowBox has appeared!
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yungsters authored and facebook-github-bot committed Jun 12, 2018
1 parent f8b4850 commit d0219a0
Show file tree
Hide file tree
Showing 25 changed files with 2,306 additions and 558 deletions.
7 changes: 7 additions & 0 deletions Libraries/ReactNative/AppContainer.js
Expand Up @@ -127,4 +127,11 @@ const styles = StyleSheet.create({
},
});

if (__DEV__) {
if (!global.__RCTProfileIsProfiling) {
const YellowBox = require('YellowBox');
YellowBox.install();
}
}

module.exports = AppContainer;

0 comments on commit d0219a0

Please sign in to comment.