Skip to content
Permalink
Browse files
Export LogBox from React Native
Summary:
We need to export this so that users can call methods like:

```
LogBox.ignoreAllLogs();
LogBox.ignoreLogs([/whatever/]);
```

Changelog: [General] [Added] Export LogBox module

Reviewed By: TheSavior

Differential Revision: D19813773

fbshipit-source-id: 8c301c16247c5b9f4b23e8afaf6a9783b4b4c724
  • Loading branch information
rickhanlonii authored and facebook-github-bot committed Feb 18, 2020
1 parent cb749f1 commit 799bf56f6f6a46b6bd42ac5a824f44bd1412f3b6
Showing 1 changed file with 4 additions and 0 deletions.
@@ -87,6 +87,7 @@ import typeof useWindowDimensions from './Libraries/Utilities/useWindowDimension
import typeof UTFSequence from './Libraries/UTFSequence';
import typeof Vibration from './Libraries/Vibration/Vibration';
import typeof YellowBox from './Libraries/YellowBox/YellowBox';
import typeof LogBox from './Libraries/LogBox/LogBox';
import typeof RCTDeviceEventEmitter from './Libraries/EventEmitter/RCTDeviceEventEmitter';
import typeof RCTNativeAppEventEmitter from './Libraries/EventEmitter/RCTNativeAppEventEmitter';
import typeof NativeModules from './Libraries/BatchedBridge/NativeModules';
@@ -356,6 +357,9 @@ module.exports = {
get Linking(): Linking {
return require('./Libraries/Linking/Linking');
},
get LogBox(): LogBox {
return require('./Libraries/LogBox/LogBox');
},
get NativeDialogManagerAndroid(): NativeDialogManagerAndroid {
return require('./Libraries/NativeModules/specs/NativeDialogManagerAndroid')
.default;

0 comments on commit 799bf56

Please sign in to comment.