Occasional Error Screen

Hi! We had a customer send us this screenshot she took while using our standalone app. This happens occasionally. Does anybody have an idea as to what would cause this?

Hi @cathy!

What happens is this:

  • A fatal JS error occurs, this means the app can’t continue execution because it’s state may be bad. So the app restarts.
  • Another error occurs upon restart, within 10 seconds.

You can read more about this here: https://docs.expo.io/versions/v16.0.0/guides/errors.html#handling-fatal-js-errors

On Android, you can access the this.props.exp.lastErrors on the root component of your app if it was restarted due to an error and attempt to recover. On iOS you can use ErrorRecovery as described at the above link.

1 Like