We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e031f59 commit 0cbaf83Copy full SHA for 0cbaf83
1 file changed
reason-react-native/src/apis/YellowBox.md
@@ -1,13 +1,22 @@
1
---
2
id: apis/YellowBox
3
title: YellowBox
4
-wip: true
+officialDoc: https://facebook.github.io/react-native/docs/debugging#warnings
5
6
7
-```reason
8
-[@bs.module "react-native"] [@bs.scope "YellowBox"]
9
-external ignoreWarnings: array(string) => unit = "";
+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 BuckleScript.
10
+
11
+## Methods
12
13
+### `ignoreWarnings`
14
15
+Allows setting an array of prefixes to be ignored; any warning message which
16
+begins with a string in that array will not be displayed in the YellowBox.
17
18
+```reason
19
+ignoreWarnings: array(string) => unit
20
```
21
22
## Example
0 commit comments