| id | logbox |
|---|---|
| title | LogBox |
| officialDoc | https://reactnative.dev/docs/debugging#logbox |
Errors and warnings in development builds are displayed in LogBox inside your app.
LogBox is automatically disabled in release (production) builds.
Ignore logs whose message starts with one of the given prefixes (or matches a regex).
ignoreLogs: array<string> => unit
ignoreLogsRegex: array<RegExp.t> => unitopen ReactNative
LogBox.ignoreLogs([
"Require cycle:",
"Remote debugger",
"Accessing view manager configs",
])Hide all LogBox notifications (useful for demos). Optionally pass
~ignore=false to re-enable.
ignoreAllLogs: (~ignore: bool=?) => unitLogBox.ignoreAllLogs()Ignore logs as a last resort and create a task to fix any logs that are ignored.