diff --git a/src/platforms/react-native/manual-setup/ram-bundles.mdx b/src/platforms/react-native/manual-setup/ram-bundles.mdx index 1de5590398637..c96c71f2f2aac 100644 --- a/src/platforms/react-native/manual-setup/ram-bundles.mdx +++ b/src/platforms/react-native/manual-setup/ram-bundles.mdx @@ -26,8 +26,24 @@ If you use the official `react-native-sentry` integration of version `0.43.1` or Starting from version `1.43.0`, `sentry-cli` provides two additional parameters to the `upload-sourcemaps` command to simplify bundle uploads: `--bundle` and `--bundle-sourcemap`. Using those parameters, you can pass the path to the application bundle, along with its source map, and the bundle will be automatically extracted before the upload, if necessary: -```shell -sentry-cli releases files RELEASE_ID upload-sourcemaps --bundle main.bundle --bundle-sourcemap main.bundle.map +```bash {tabTitle:Android} +node_modules/@sentry/cli/bin/sentry-cli releases \ + files \ + upload-sourcemaps \ + --dist \ + --strip-prefix $projectRoot/fullFolder \ + --bundle index.android.bundle \ + --bundle-sourcemap index.android.bundle.map +``` + +```bash {tabTitle:iOS} +node_modules/@sentry/cli/bin/sentry-cli releases \ + files \ + upload-sourcemaps \ + --dist \ + --strip-prefix $projectRoot/fullFolder \ + --bundle main.jsbundle \ + --bundle-sourcemap main.jsbundle.map ``` All bundle types (plain, Indexed RAM bundles, and File RAM bundles) are supported.