Sentry on Expo: How to avoid Sentry sends errors when app is offline?

I need that my app works offline, but Sentry makes it Crashes when there is an error and the device has no connection.