From 80433ee1537adf61d82d7613fae8cc250dc1e1af Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Wed, 5 Feb 2025 14:41:57 +0100 Subject: [PATCH] add console log to inform user about native init --- packages/core/src/js/sdk.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/js/sdk.tsx b/packages/core/src/js/sdk.tsx index d6db94c17b..3ff40508af 100644 --- a/packages/core/src/js/sdk.tsx +++ b/packages/core/src/js/sdk.tsx @@ -131,6 +131,9 @@ 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 + // 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.'); options.autoInitializeNativeSdk = false; }