Skip to content

Commit

Permalink
fix(native): isNativeAvailable after SDK reinitialization (#3200)
Browse files Browse the repository at this point in the history
Co-authored-by: Kryštof Woldřich <[email protected]>
  • Loading branch information
mateioprea and krystofwoldrich committed Aug 8, 2023
1 parent 4232fae commit 538cedb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

## Unreleased

### Fixed
### Fixes

- Use application variant instead of variant output to hook to correct package task for modules cleanup ([#3161](https://github.com/getsentry/sentry-react-native/pull/3161))
- Fix `isNativeAvailable` after SDK reinitialization ([#3200](https://github.com/getsentry/sentry-react-native/pull/3200))

## 5.8.1

Expand Down
2 changes: 1 addition & 1 deletion src/js/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ export const NATIVE: SentryNativeWrapper = {
},

isNativeAvailable(): boolean {
return this.enableNative && this._isModuleLoaded(RNSentry);
return this._isModuleLoaded(RNSentry);
},

async captureScreenshot(): Promise<Screenshot[] | null> {
Expand Down

0 comments on commit 538cedb

Please sign in to comment.