diff --git a/Libraries/Core/ExceptionsManager.js b/Libraries/Core/ExceptionsManager.js index 0565ef469c2..3b6a5894848 100644 --- a/Libraries/Core/ExceptionsManager.js +++ b/Libraries/Core/ExceptionsManager.js @@ -76,8 +76,7 @@ function reportException( message = e.jsEngine == null ? message : `${message}, js engine: ${e.jsEngine}`; - const isHandledByLogBox = - e.forceRedbox !== true && global.__unstable_isLogBoxEnabled === true; + const isHandledByLogBox = e.forceRedbox !== true; const data = preprocessException({ message, diff --git a/Libraries/ReactNative/AppContainer.js b/Libraries/ReactNative/AppContainer.js index e67bd0742a0..e7772fc14fd 100644 --- a/Libraries/ReactNative/AppContainer.js +++ b/Libraries/ReactNative/AppContainer.js @@ -91,14 +91,15 @@ class AppContainer extends React.Component { } render(): React.Node { - let yellowBox = null; + let logBox = null; if (__DEV__) { if ( !global.__RCTProfileIsProfiling && !this.props.internal_excludeLogBox ) { - const YellowBox = require('../YellowBox/YellowBox'); - yellowBox = ; + const LogBoxNotificationContainer = require('../LogBox/LogBoxNotificationContainer') + .default; + logBox = ; } } @@ -132,7 +133,7 @@ class AppContainer extends React.Component { {!this.state.hasError && innerView} {this.state.inspector} - {yellowBox} + {logBox} ); @@ -147,8 +148,8 @@ const styles = StyleSheet.create({ if (__DEV__) { if (!global.__RCTProfileIsProfiling) { - const YellowBox = require('../YellowBox/YellowBox'); - YellowBox.install(); + const LogBox = require('../LogBox/LogBox'); + LogBox.install(); } }