Skip to content

Commit

Permalink
Export LogBox from React Native
Browse files Browse the repository at this point in the history
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 799bf56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 799bf56

Please sign in to comment.