Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #104 from bryanstearns/add-missing-reactotron-mocks
Browse files Browse the repository at this point in the history
Add a few more Reactotron mocks, to make Typescript happier
  • Loading branch information
bryanstearns authored Sep 25, 2018
2 parents 1cb008c + f518567 commit afd34f3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions boilerplate/src/services/reactotron/reactotron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,20 @@ if (__DEV__) {
} else {
// attach a mock so if things sneaky by our __DEV__ guards, we won't crash.
console.tron = {
benchmark: noop,
clear: noop,
close: noop,
configure: noop,
connect: noop,
use: noop,
useReactNative: noop,
clear: noop,
log: noop,
logImportant: noop,
display: noop,
error: noop,
image: noop,
log: noop,
logImportant: noop,
reportError: noop,
use: noop,
useReactNative: noop,
warn: noop,
}
}

Expand Down

0 comments on commit afd34f3

Please sign in to comment.