Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose helper function to set dist to EAS Update ID #3647

Open
Tracked by #3262
krystofwoldrich opened this issue Feb 29, 2024 · 0 comments
Open
Tracked by #3262

Expose helper function to set dist to EAS Update ID #3647

krystofwoldrich opened this issue Feb 29, 2024 · 0 comments

Comments

@krystofwoldrich
Copy link
Member

krystofwoldrich commented Feb 29, 2024

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,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant