1/** 2 * Copyright © 2023 650 Industries. 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 8import { DeviceEventEmitter } from 'react-native-web'; 9 10// Ensure events are sent so custom Fast Refresh views are shown. 11function showMessage(message: string, type: 'load' | 'refresh') { 12 DeviceEventEmitter.emit('devLoadingView:showMessage', { 13 message, 14 }); 15} 16 17function hide() { 18 DeviceEventEmitter.emit('devLoadingView:hide', {}); 19} 20 21export default { 22 showMessage, 23 hide, 24}; 25