@sentry/react-native
Advanced tools
Changelog
5.16.0
This release ships with a beta version of our new built-in Expo SDK 50 support,
which replaces the deprecated sentry-expo
package. To learn more,
see the Expo guide.
New @sentry/react-native/expo
Expo config plugin (#3429)
const { withSentry } = require('@sentry/react-native/expo');
const config = {...};
module.exports = withSentry(config, {
url: 'https://www.sentry.io/',
project: 'project-slug', // Or use SENTRY_PROJECT env
organization: 'org-slug', // Or use SENTRY_ORG env
});
Sentry.init
in App.js
import * as Sentry from '@sentry/react-native';
Sentry.init({
dsn: '__DSN__',
});
New getSentryExpoConfig
for simple Metro configuration (#3454, #3501, #3514)
getDefaultConfig
from expo/metro-config
// const { getDefaultConfig } = require("expo/metro-config");
const { getSentryExpoConfig } = require("@sentry/react-native/metro");
// const config = getDefaultConfig(__dirname);
const config = getSentryExpoConfig(__dirname);
New npx sentry-expo-upload-sourcemaps
for simple EAS Update (npx expo export
) source maps upload (#3491, #3510, #3515, #3507)
SENTRY_PROJECT=project-slug \
SENTRY_ORG=org-slug \
SENTRY_AUTH_TOKEN=super-secret-token \
npx sentry-expo-upload-sourcemaps dist
sentry-xcode.sh
scripts with Node modules resolution (#3450)
sentry-xcode-debug-files.sh
(#3523)Changelog
5.16.0-alpha.3
This release is compatible with expo@50.0.0-preview.6
and newer.
withSentryExpoSerializers
changes to getSentryExpoConfig
(#3501)
getSentryExpoConfig
accepts the same parameters as getDefaultConfig
from expo/metro-config
and returns Metro configurationexpo/metro-config
and used by Sentry.const { getSentryExpoConfig } = require("@sentry/react-native/metro");
const config = getSentryExpoConfig(config, {});
Add npx sentry-expo-upload-sourcemaps
for simple EAS Update (expo export) source maps upload to Sentry (#3491, #3510)
SENTRY_PROJECT=project-slug \
SENTRY_ORG=org-slug \
SENTRY_AUTH_TOKEN=super-secret-token \
npx sentry-expo-upload-sourcemaps dist
Sentry CLI binary path in scripts/expo-upload-sourcemaps.js
is resolved dynamically (#3507)
SENTRY_CLI_EXECUTABLE
envResolve Default Integrations based on current platform (#3465)
Remove Native Modules warning from platform where the absence is expected (#3466)
Add Expo Context information using Expo Native Modules (#3466)
Changelog
5.15.2
Changelog
5.16.0-alpha.2
Add withSentryExpoSerializers
for easy configurable metro.config.js
(#3454)
This Serializer doesn't support EAS Updates (and expo export) commands yet. Debug IDs needed for source maps resolution in Sentry are generated only during native builds.
const { getDefaultConfig } = require('expo/metro-config');
const { withSentryExpoSerializers } = require("@sentry/react-native/metro");
const config = getDefaultConfig(__dirname);
module.exports = withSentryExpoSerializers(config);
Note that this will remove any existing customSerializer
. Guide for advanced setups can be found here.
Changelog
5.16.0-alpha.1
Add @sentry/react-native/expo
Expo config plugin (#3429)
This Release introduces the first alpha version of our new SDK for Expo. At this time, the SDK is considered experimental and things might break and change in future versions.
The core of the SDK is Expo plugin which you can easily add to your App config:
const { withSentry } = require('@sentry/react-native/expo');
const config = {...};
module.exports = withSentry(config, {
url: 'https://www.sentry.io/',
authToken: 'example-token', // Or use SENTRY_AUTH_TOKEN env
project: 'project-slug', // Or use SENTRY_PROJECT env
organization: 'org-slug', // Or use SENTRY_ORG env
});
Sentry.init
in App.js
import * as Sentry from '@sentry/react-native';
Sentry.init({
dsn: '__DSN__',
});
Update sentry-xcode.sh
scripts with Node modules resolution (#3450)
Changelog
5.15.0
New simplified Sentry Metro Serializer export (#3450)
const { createSentryMetroSerializer } = require('@sentry/react-native/metro');
Changelog
5.14.0