From c162f0b14f60900ba0f1343e7a094595dc9e86f0 Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Wed, 26 Apr 2023 14:51:52 +0200 Subject: [PATCH 1/5] feat(rn): Add code snippet to send the first Sentry Error --- CHANGELOG.md | 1 + lib/Steps/Integrations/ReactNative.ts | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a78918c..56f8a4af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - ref(nextjs): Clean up minor things (#258) - ref(nextjs): Replace old Next.js wizard (#262) +- feat(rn): Add code snippet to send the first Sentry Error ## 3.1.0 diff --git a/lib/Steps/Integrations/ReactNative.ts b/lib/Steps/Integrations/ReactNative.ts index 43909db8..57c3661d 100755 --- a/lib/Steps/Integrations/ReactNative.ts +++ b/lib/Steps/Integrations/ReactNative.ts @@ -14,7 +14,7 @@ import { matchFiles, patchMatchingFile, } from '../../Helper/File'; -import { dim, green, nl, red } from '../../Helper/Logging'; +import { dim, green, l, nl, red } from '../../Helper/Logging'; import { checkPackageVersion } from '../../Helper/Package'; import { getPackageMangerChoice } from '../../Helper/PackageManager'; import { SentryCli } from '../../Helper/SentryCli'; @@ -135,6 +135,21 @@ export class ReactNative extends MobileProject { await Promise.all(promises); + l(` +Please put the following code snippet into your application: + +