I'm building react-native app with Exponent and do some logging with console.error
e.g. when network request fails etc. While it's helpful in development to see this red screen with error on simulator or real device, I'm getting this too when __DEV__
is set to false
(seeing it is set so in logs) while the web says it shouldn't work like this.
How can I disable that for non-dev builds? Is there any other way than monkey-patching console.error
?