I set up Sentry on RN, following these instructions: https://docs.sentry.io/platforms/react-native/
The source map is perfect when I throw some error with the debug release, but when I try to generate a release in order to test the error source maps in production, that’s the result:
For some reason, instead of showing the JS code, it shows the native code.
The command that I’m running to generate the release:
yarn react-native ios --configuration Release
And the function responsible to initialize Sentry:
import * as Sentry from "@sentry/react-native";
export const configureSentry = (): void => {
if (__DEV__) {
return;
}
Sentry.init({
dsn: "dsnexample@sentry.jungsoft.com.br/34",
});
};