Skip to content

Commit

Permalink
add console log to inform user about native init
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Feb 5, 2025
1 parent a3d0444 commit 80433ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/js/sdk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 80433ee

Please sign in to comment.