How to see error logs of an app published to expo.host?

I published an Expo app to expo.host and I’m getting a blank screen after the splash screen. I’m guessing that there’s an error message behind this. Is there a way to see the app’s error logs without using an error logging service like Sentry?

Cheers!

@whilestevego I think you can see them from Console.app. But also, is this blank screen issue only happening on the published app and not the develop version?

1 Like

hello steve! you can look at your device logs to see if anything useful pops up there, if not then you should use something like sentry. you can see info for that here: https://docs.expo.io/versions/v17.0.0/guides/logging.html#optional-manually-access-device-logs

additionallty, react-native provides a global error handler hook that you can use, this is what sentry uses: sentry-expo/index.js at de1ce13e912485b439435dfa751307f656efd577 · expo/sentry-expo · GitHub

  ErrorUtils.setGlobalHandler((error, isFatal) => {
     // do something with the error
  });
1 Like

Hi @nikki . It’s only happening on the published app. It works fine in simulator or on my iPhone with exp tunneling.

Thanks for the Console.app trick. I’m not quite getting the error message I’m looking for. Looks like I may have to use the global error handler hook as @notbrent is suggesting. Thanks for the tip, @notbrent!

did you ever solve this? I seem to be getting a white screen too, but no error logs to sentry

For android you may run “adb logcat”. It helped me to see error message. Had white screen in production and everything was ok in debug mode. Looks like it happened for me because of production js optimizations.

I’m trying to see logs for a published app, but I don’t know what the “Console.app” trick is. Could you please give more details? Thank you! @whilestevego

https://docs.expo.io/versions/v27.0.0/guides/errors