From 720b31802a8084cd5f880a6745c692273f5fdbd9 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Wed, 11 Mar 2026 10:38:36 +0100 Subject: [PATCH] fix(core): Improve native init log message clarity Co-Authored-By: Claude Opus 4.6 --- packages/core/src/js/sdk.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/js/sdk.tsx b/packages/core/src/js/sdk.tsx index 8df0c66255..8d26f0268e 100644 --- a/packages/core/src/js/sdk.tsx +++ b/packages/core/src/js/sdk.tsx @@ -141,9 +141,10 @@ export function init(passedOptions: ReactNativeOptions): void { }; if (!('autoInitializeNativeSdk' in userOptions) && RN_GLOBAL_OBJ.__SENTRY_OPTIONS__) { - // We expect users to use the file options only in combination with manual native initialization + // Options file is present, native SDK is expected to be initialized + // before JS from the native app entry point (e.g. AppDelegate, MainApplication). // eslint-disable-next-line no-console - console.info('Initializing Sentry JS with the options file. Expecting manual native initialization before JS. Native will not be initialized automatically.'); + console.info('[Sentry] Using options file. Native SDK is expected to be initialized before JS, skipping automatic native initialization from JS.'); options.autoInitializeNativeSdk = false; }