Skip to content

Commit

Permalink
fix(react-native): initialise synchronously in bridgeless mode (#2165)
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag authored Jul 1, 2024
1 parent 713410e commit b3e07f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
### Fixed

- (react-native) Use synchronous native module calls when New Architecture is enabled [#2152](https://github.com/bugsnag/bugsnag-js/pull/2152)
- (react-native) Ensure client is initialised synchronously in bridgeless mode [#2165](https://github.com/bugsnag/bugsnag-js/pull/2165)

## [7.24.0] - 2024-06-10

Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/src/notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ This only affects the remote debugger. Execution of JS in the normal way (on the

// this is how some internal react native code detects whether the app is running
// in the remote debugger:
// https://github.com/facebook/react-native/blob/1f4535c17572df78e2a033890220337e5703b614/Libraries/ReactNative/PaperUIManager.js#L62-L66
// https://github.com/facebook/react-native/blob/e320ab47cf855f2e5de74ea448ec292cf0bbb29a/packages/react-native/Libraries/Utilities/DebugEnvironment.js#L15
// there's no public api for this so we use the same approach
const isDebuggingRemotely = !global.nativeCallSyncHook
const isDebuggingRemotely = !global.nativeCallSyncHook && !global.RN$Bridgeless

const name = 'Bugsnag React Native'
const { version } = require('../package.json')
Expand Down

0 comments on commit b3e07f9

Please sign in to comment.