Catch unhandled error using ErrorBoundary without restarting the app


#1

Is there a way that I can use the ErrorBoundary of react (componentDidCatch), and not let the standalone expo app crash/restarts or restarts it .

I want to display my own nice awesome ErrorScreen, (and not that lame Bluescreen of Expo :slight_smile: ). From that screen I can trigger the Utils.reload() to reload the app, and logToSentry the error information.

But currently, every time i have app error, the app always crashes and restarts my app, going back again to my login screen. In development, the red-screen-of-death is shown, and clicking dismiss, shows my awesome error screen, but in production i wont be able to see that.


closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.