FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

rescript-react-native.github.io/docs/yellowbox.md at src · rescript-react-native/rescript-react-native.github.io · GitHub

Latest commit

 

History

History
29 lines (22 loc) · 642 Bytes

File metadata and controls

29 lines (22 loc) · 642 Bytes
id yellowbox
title YellowBox
officialDoc https://reactnative.dev/docs/debugging#warnings

Warning messages are displayed in white on a yellow background; which is known as a YellowBox. Warnings may be trigged with the Js.Console.warn function included in ReScript.

Methods

ignoreWarnings

Allows setting an array of prefixes to be ignored; any warning message which begins with a string in that array will not be displayed in the YellowBox.

ignoreWarnings: array(string) => unit

Example

YellowBox.ignoreWarnings([
  "Possible Unhandled Promise Rejection",
  "Remote debugger",
])

Back | FazBrowse Home | New Git URL