UNPKG

742 BJavaScriptView Raw
1import Constants from 'expo-constants';
2import { YellowBox } from 'react-native';
3if (__DEV__) {
4 if (Constants.manifest?.experiments?.redesignedLogBox) {
5 // @ts-ignore: This needs to be run before Expo.fx, and it's not included on external types
6 YellowBox.__unstable_enableLogBox();
7 }
8 else {
9 // Replace the YellowBox.__unstable_enableLogBox function to make discovery easier if
10 // someone is following the React Native 62 blog post.
11 // @ts-ignore
12 YellowBox.__unstable_enableLogBox = () => console.warn('To enable the redesigned LogBox in your app, add "experiments": {"redesignedLogBox": true} to your app.json or app.config.js.');
13 }
14}
15//# sourceMappingURL=LogBox.fx.expo.js.map
\No newline at end of file