sentry-react-native
sentry-react-native copied to clipboard
Expose helper function to set `dist` to EAS Update ID
The helper could automatically resolve the dist when an EAS Update is detected, otherwise, the default value is used.
This simplifies the current init for Expo users.
import * as Updates from 'expo-updates';
import * as Sentry from '@sentry/react-native';
Sentry.init({
dist: Updates.isEmbeddedLaunch
? undefined // default from native will be used
: Updates.updateId,
});