react-native/Libraries/Utilities/HMRLoadingView.ios.js

31 lines
614 B
JavaScript

/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule HMRLoadingView
* @flow
*/
'use strict';
const processColor = require('processColor');
const { DevLoadingView } = require('NativeModules');
class HMRLoadingView {
static showMessage(message: string) {
DevLoadingView.showMessage(
message,
processColor('#000000'),
processColor('#aaaaaa'),
);
}
static hide() {
DevLoadingView.hide();
}
}
module.exports = HMRLoadingView;