How can I integrate sentry to jitsi-meet react-native project?

I want to integrate sentry for jitsi-meet react-native application, but I didn’t get the error catching result I wanted. Has anyone worked on this issue?

I added index.js file Sentry.init function(1) and wrap the app(2).

(1) Sentry.init({
dsn: ‘https://8582ba51b23647b09378cd253e942deb@o1040061.ingest.sentry.io/6156519’,
release: {release_name},
dist: {dist_number}
});

(2) AppRegistry.registerComponent(‘App’, () => gestureHandlerRootHOC(Sentry.wrap(Root)));

I manually uploaded the source maps because not automatically installed.

first I tried it for android;

./node_modules/@sentry/cli/bin/sentry-cli releases --org {company} --project {project} files {release_name} upload-sourcemaps --dist {dist_number} --strip-prefix ‘~/’ --rewrite index.android.bundle index.android.bundle.map

npx react-native bundle --dev false --platform android --entry-file index.js --bundle-output index.android.bundle --sourcemap-output index.android.bundle.map

And I added crash code as;

<TouchableOpacity
                onPress={() => {
                      throw new Error('My Sentry error!');
                }}>
              <Text>JS CRASH</Text>
</TouchableOpacity>

As a result, the error drops while in debug mode. But when I run it in release mode, the application does not crash(I couldn’t find the reason). And nothing shows up in the sentry