react-native-macos
Version:
[Microsoft Fork] A framework for building native apps using React
33 lines (26 loc) • 860 B
JavaScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
// TODO(macOS ISS#2323203) TODO(windows ISS): this file is HMRLoadingView.ios.js in facebook's repo. Renamed to HMRLoadingView.js since it is shared here between ios, macos, and windows.
;
const processColor = require('../StyleSheet/processColor');
const {DevLoadingView} = require('../BatchedBridge/NativeModules');
class HMRLoadingView {
static showMessage(message: string) {
DevLoadingView.showMessage(
message,
processColor('#000000'),
processColor('#aaaaaa'),
);
}
static hide() {
DevLoadingView.hide();
}
}
module.exports = HMRLoadingView;