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