File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
reason-react-native/src/apis Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 11---
22id : apis/YellowBox
33title : YellowBox
4- wip : true
4+ officialDoc : https://facebook.github.io/react-native/docs/debugging#warnings
55---
66
7- ``` reason
8- [@bs.module "react-native"] [@bs.scope "YellowBox"]
9- external ignoreWarnings: array(string) => unit = "";
7+ Warning messages are displayed in white on a yellow background; which is known
8+ as a YellowBox. Warnings may be trigged with the ` Js.Console.warn ` function included
9+ in BuckleScript.
10+
11+ ## Methods
12+
13+ ### ` ignoreWarnings `
1014
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
1120```
1221
1322## Example
You can’t perform that action at this time.
0 commit comments