Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/core/src/js/sdk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Loading