• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facebook / react-native / af585971-f736-432c-90fc-8c3de5e01da3

pending completion
af585971-f736-432c-90fc-8c3de5e01da3

push

CircleCI

Facebook GitHub Bot
ESM ActivityIndicator

3633 of 26411 branches covered (13.76%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

7424 of 44591 relevant lines covered (16.65%)

241.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

65.22
/Libraries/YellowBox/YellowBoxDeprecated.js
1
/**
2
 * Copyright (c) Meta Platforms, Inc. and affiliates.
3
 *
4
 * This source code is licensed under the MIT license found in the
5
 * LICENSE file in the root directory of this source tree.
6
 *
7
 * @flow
8
 * @format
9
 */
10

11
'use strict';
12

13
import type {IgnorePattern} from '../LogBox/Data/LogBoxData';
14

15
import LogBox from '../LogBox/LogBox';
64!
16

17
const React = require('react');
18

19
type Props = $ReadOnly<{||}>;
20

21
let YellowBox;
22
if (__DEV__) {
1!
23
  YellowBox = class extends React.Component<Props> {
2✔
24
    static ignoreWarnings(patterns: $ReadOnlyArray<IgnorePattern>): void {
25
      console.warn(
1✔
26
        'YellowBox has been replaced with LogBox. Please call LogBox.ignoreLogs() instead.',
27
      );
28

29
      LogBox.ignoreLogs(patterns);
1✔
30
    }
31

32
    static install(): void {
33
      console.warn(
1✔
34
        'YellowBox has been replaced with LogBox. Please call LogBox.install() instead.',
35
      );
36
      LogBox.install();
1✔
37
    }
38

39
    static uninstall(): void {
40
      console.warn(
1✔
41
        'YellowBox has been replaced with LogBox. Please call LogBox.uninstall() instead.',
42
      );
43
      LogBox.uninstall();
1✔
44
    }
1✔
45

46
    render(): React.Node {
47
      return null;
×
48
    }
49
  };
50
} else {
51
  YellowBox = class extends React.Component<Props> {
×
52
    static ignoreWarnings(patterns: $ReadOnlyArray<IgnorePattern>): void {
53
      // Do nothing.
54
    }
55

56
    static install(): void {
57
      // Do nothing.
58
    }
59

60
    static uninstall(): void {
61
      // Do nothing.
62
    }
×
63

64
    render(): React.Node {
65
      return null;
×
66
    }
67
  };
68
}
69

70
// $FlowFixMe[method-unbinding]
71
module.exports = (YellowBox: Class<React.Component<Props>> & {
1✔
72
  ignoreWarnings($ReadOnlyArray<IgnorePattern>): void,
73
  install(): void,
74
  uninstall(): void,
75
  ...
76
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc