-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetupLogBox.ts
More file actions
22 lines (21 loc) · 1022 Bytes
/
Copy pathsetupLogBox.ts
File metadata and controls
22 lines (21 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* Testbed-only LogBox configuration. Imported FIRST from index.js — before
* `App` and therefore before expo-audio / styled-components evaluate — so the
* known-benign warnings those emit at IMPORT time are suppressed before
* they can flash the "Open debugger to view warnings" toast. (Registering
* these inside a component module ran after that module's own imports, too
* late, so the toast still appeared.)
*
* We deliberately DON'T `ignoreAllLogs` — unexpected errors should still
* surface their red overlay during development. The in-app Logs tab keeps
* a full record regardless (see src/utils/devLogger).
*/
import { LogBox } from 'react-native';
LogBox.ignoreLogs([
// No-op promise rejection from createTimeoutPromise during XMPP connect
// teardown (also fixed at the source + via the rejection tracker).
/\[ethora-rn\] (Hermes unhandled rejection|UNHANDLED PROMISE)/,
/Expo AV has been deprecated/,
/\[styled-components\/native\]/,
/Expected style .* to contain units/,
]);