Skip to content

Commit 7320cf5

Browse files
committed
Fix nativeClient available checks
1 parent 6a83579 commit 7320cf5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/Sentry.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ export class Sentry {
5858
}
5959

6060
static isNativeClientAvailable() {
61-
return Sentry._nativeClient !== undefined;
61+
return (
62+
Sentry._nativeClient !== undefined &&
63+
Sentry.options.disableNativeIntegration === false
64+
);
6265
}
6366

6467
static _log(...args) {

lib/raven-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function reactNativePlugin(Raven, options, internalDataCallback) {
7575
})
7676
);
7777

78-
if (options.nativeClientAvailable && options.nativeClientAvailable === false) {
78+
if (options.nativeClientAvailable === false) {
7979
// react-native doesn't have a document, so can't use default Image
8080
// transport - use XMLHttpRequest instead
8181
Raven.setTransport(reactNativePlugin._transport);

0 commit comments

Comments
 (0)