Move this PR to capacitor https://github.com/getsentry/sentry-react-native/pull/5440 V3
Move this PR to capacitor getsentry/sentry-react-native#5440 V3