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

facebook / react-native / 8888cda1-9cb7-4bb3-9e27-20076db6e62a

pending completion
8888cda1-9cb7-4bb3-9e27-20076db6e62a

push

CircleCI

Facebook GitHub Bot
Adding native implementation for Dev Loading View for Android (#35743)

3615 of 26412 branches covered (13.69%)

Branch coverage included in aggregate %.

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

7397 of 44572 relevant lines covered (16.6%)

250.88 hits per line

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

0.0
/Libraries/Utilities/LoadingView.android.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
 * @format
8
 * @flow strict-local
9
 */
10

11
import processColor from '../StyleSheet/processColor';
×
12
import Appearance from './Appearance';
×
13
import NativeDevLoadingView from './NativeDevLoadingView';
×
14

15
module.exports = {
×
16
  showMessage(message: string, type: 'load' | 'refresh') {
17
    if (NativeDevLoadingView) {
×
18
      if (type === 'refresh') {
×
19
        const backgroundColor = processColor('#2584e8');
×
20
        const textColor = processColor('#ffffff');
×
21

22
        NativeDevLoadingView.showMessage(
×
23
          message,
24
          typeof textColor === 'number' ? textColor : null,
×
25
          typeof backgroundColor === 'number' ? backgroundColor : null,
×
26
        );
27
      } else if (type === 'load') {
×
28
        let backgroundColor;
29
        let textColor;
30

31
        if (Appearance.getColorScheme() === 'dark') {
×
32
          backgroundColor = processColor('#fafafa');
×
33
          textColor = processColor('#242526');
×
34
        } else {
35
          backgroundColor = processColor('#404040');
×
36
          textColor = processColor('#ffffff');
×
37
        }
38

39
        NativeDevLoadingView.showMessage(
×
40
          message,
41
          typeof textColor === 'number' ? textColor : null,
×
42
          typeof backgroundColor === 'number' ? backgroundColor : null,
×
43
        );
44
      }
45
    }
46
  },
47
  hide() {
48
    NativeDevLoadingView && NativeDevLoadingView.hide();
×
49
  },
50
};
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