diff --git a/Libraries/Utilities/HMRClient.js b/Libraries/Utilities/HMRClient.js index ca3f38e06d..24f568ebd2 100644 --- a/Libraries/Utilities/HMRClient.js +++ b/Libraries/Utilities/HMRClient.js @@ -172,7 +172,7 @@ Error: ${e.message}`; client.on('update-start', () => { if (isFastRefreshActive()) { - LoadingView.showMessage('Refreshing...'); + LoadingView.showMessage('Refreshing...', 'refresh'); } }); diff --git a/Libraries/Utilities/LoadingView.android.js b/Libraries/Utilities/LoadingView.android.js index 04fc973c31..3b9511f52a 100644 --- a/Libraries/Utilities/LoadingView.android.js +++ b/Libraries/Utilities/LoadingView.android.js @@ -16,7 +16,7 @@ const TOAST_SHORT_DELAY = 2000; let isVisible = false; module.exports = { - showMessage(message: string) { + showMessage(message: string, type: 'load' | 'refresh') { if (!isVisible) { ToastAndroid.show(message, ToastAndroid.SHORT); isVisible = true; diff --git a/Libraries/Utilities/LoadingView.ios.js b/Libraries/Utilities/LoadingView.ios.js index caf499aa4d..782bedfbbb 100644 --- a/Libraries/Utilities/LoadingView.ios.js +++ b/Libraries/Utilities/LoadingView.ios.js @@ -14,13 +14,15 @@ import processColor from '../StyleSheet/processColor'; import NativeDevLoadingView from './NativeDevLoadingView'; module.exports = { - showMessage(message: string) { + showMessage(message: string, type: 'load' | 'refresh') { if (NativeDevLoadingView) { NativeDevLoadingView.showMessage( message, // Use same colors as iOS "Personal Hotspot" bar. processColor('#ffffff'), - processColor('#2584e8'), + type && type === 'load' + ? processColor('#275714') + : processColor('#2584e8'), ); } }, diff --git a/Libraries/Utilities/LoadingView.js b/Libraries/Utilities/LoadingView.js index cc14be3be6..2a02730fc5 100644 --- a/Libraries/Utilities/LoadingView.js +++ b/Libraries/Utilities/LoadingView.js @@ -11,6 +11,6 @@ 'use strict'; module.exports = { - showMessage(message: string) {}, + showMessage(message: string, type: 'load' | 'refresh') {}, hide() {}, };