YellowBox has been replaced with LogBox. Please call LogBox.ignoreLogs() instead when using expo-sentry
See original GitHub issueWhen I call Sentry.init in my App.js I get the warning mentioned above. If I comment the call to Sentry.init out, it doesn’t prompt me with the warning.
I’m not importing YellowBox anywhere in my code, perhaps Sentry implementation is calling YellowBox?
YellowBox has been replaced with LogBox. Please call LogBox.ignoreLogs() instead.
- node_modules\react-native\Libraries\LogBox\LogBox.js:117:10 in registerWarning
- node_modules\react-native\Libraries\LogBox\LogBox.js:63:8 in warnImpl
- node_modules\react-native\Libraries\LogBox\LogBox.js:36:4 in console.warn
- node_modules\expo\build\environment\react-native-logs.fx.js:18:4 in warn
- node_modules\react-native\Libraries\YellowBox\YellowBoxDeprecated.js:25:6 in YellowBox.ignoreWarnings
* http://10.0.0.77:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=ios&dev=true&minify=false&hot=false:252511:43 in ReactNativeBackend
* http://10.0.0.77:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=ios&dev=true&minify=false&hot=false:249763:38 in BaseClient
* [native code]:null in construct
- node_modules\@sentry\browser\dist\client.js:38:32 in BrowserClient.prototype.showReportDialog
- node_modules\@sentry\browser\dist\client.js:48:25 in BrowserClient.prototype._prepareEvent
- node_modules\@sentry\utils\dist\path.js:5:0 in normalizeArray
- node_modules\@sentry\browser\dist\eventbuilder.js:19:26 in eventFromException
- node_modules\expo-permissions\build\Permissions.js:80:0 in _handlePermissionsRequestAsync
* App.js:8:0 in <global>
- node_modules\metro\src\lib\polyfills\require.js:321:11 in loadModuleImplementation
- node_modules\expo\AppEntry.js:3:0 in <global>
- ... 4 more stack frames from framework internals
Expected Behavior vs Actual Behavior
No warning vs warning
Issue Analytics
- State:
- Created 3 years ago
- Reactions:7
- Comments:18 (7 by maintainers)
Top Results From Across the Web
YellowBox has been replaced with LogBox. Please call ...
I am receiving the following warning: YellowBox has been replaced with LogBox. Please call LogBox.ignoreLogs() instead.
Read more >Announcing React Native 0.63 with LogBox
LogBox.ignoreLogs() : This function replaces YellowBox.ignoreLogs([]) as a way to silence any logs that match the given strings or regexes.
Read more >How to suppress a specific warning in expo - Stack Overflow
I have tried the below method(placed below lines in app.js ) but none are working. import { LogBox } from 'react-native' LogBox ......
Read more >How to Disable Yellow Warning Box in React Native
For disabling the LogBox Warning you can use import { LogBox } from 'react-native'; // Ignore log notification by message LogBox.ignoreLogs(['Warning: .
Read more >Using Sentry - Expo Documentation
A guide on installing and configuring Sentry for crash reporting. Sentry is a crash reporting platform that provides you with "real-time insight into...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
sentry-expo@latest
(3.0.2) has been released, please enjoy 😄 and thanks for the patience on this one@JacobJaffe no need for hesitation on upgrading to
sentry-expo@3.0.0-rc3
, it’s all set to go. There’s still a small bug which is why I’m not promoting tolatest
just yet, need to wait for an upstream PR ( https://github.com/getsentry/sentry-react-native/pull/1084) to land and be published