Skip to content

Commit

Permalink
fix: mock ErrorUtils.getGlobalHandler for expo
Browse files Browse the repository at this point in the history
  • Loading branch information
zetavg authored and natew committed Jan 1, 2025
1 parent 6ed3652 commit f9ee4da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vxrn/react-native-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ global.performance = {
}

global.ErrorUtils = {
// mocked
setGlobalHandler: () => {},
getGlobalHandler: () => () => {},
reportFatalError: (err) => {
// biome-ignore lint/suspicious/noConsoleLog: <explanation>
console.log('err' + err['message'] + err['stack'])
Expand Down

0 comments on commit f9ee4da

Please sign in to comment.