#Replay session not working in react-native expo

4 messages · Page 1 of 1 (latest)

regal kindle
#

import * as Sentry from '@sentry/react-native';
import Config from '@/libs/config';
import User from '@/types/User';

here is my code when I try to display the replay sessions it does not work can someone help me please

export const initSentry = () => Sentry.init({
dsn: Config.sentryDsn,
debug: true,
environment: Config.environment,
_experiments: {
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
},
integrations: [Sentry.mobileReplayIntegration({
maskAllText: true,
maskAllImages: true,
maskAllVectors: true,
})],
tracesSampleRate: 1.0,
});

export const setUserSentry = (user: User) => {
Sentry.setUser({
id: user.id,
name: user.name,
role: user.roles.join(', '),
company: user.company,
});
};

north apex
#

hey what sdk version are you on? Are you on version 5.26.0 or higher?

regal kindle
#

hey, my version is 6.1.0

dull harness
#

Hey Mate,

Are you able to deploy a React Native app with Sentry plugins?

I'm encountering errors when running npx expo-doctor and using the eas build command. If you could help me resolve this issue, I would be really grateful. Thank you!