diff --git a/src/bundle.ts b/src/bundle.ts index e7e13a9..63bab63 100644 --- a/src/bundle.ts +++ b/src/bundle.ts @@ -149,6 +149,14 @@ async function runReactNativeBundleCommand({ const bundleParams = await checkPlugins(); const isSentry = bundleParams.sentry; + if (isSentry) { + if (platform === 'ios') { + process.env.SENTRY_PROPERTIES = 'ios/sentry.properties'; + } else if (platform === 'android') { + process.env.SENTRY_PROPERTIES = 'android/sentry.properties'; + } + } + let bundleCommand = 'bundle'; if (usingExpo) { bundleCommand = 'export:embed';