Skip to content

Commit b1b8e01

Browse files
committed
Redesign DevLoadingView as a floating capsule (iOS)
1 parent 52efed6 commit b1b8e01

3 files changed

Lines changed: 389 additions & 105 deletions

File tree

‎packages/react-native/Libraries/Utilities/DevLoadingView.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const COLOR_SCHEME = {
1919
textColor: '#242526',
2020
},
2121
refresh: {
22-
backgroundColor: '#2584e8',
22+
backgroundColor: '#1065AF',
2323
textColor: '#ffffff',
2424
},
2525
error: {
@@ -33,7 +33,7 @@ const COLOR_SCHEME = {
3333
textColor: '#ffffff',
3434
},
3535
refresh: {
36-
backgroundColor: '#2584e8',
36+
backgroundColor: '#1065AF',
3737
textColor: '#ffffff',
3838
},
3939
error: {

‎packages/react-native/Libraries/Utilities/HMRClient.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ function setHMRUnavailableReason(reason: string) {
323323
// the warning to native engineers who use cached bundles without Metro.
324324
if (hmrClient.isEnabled() && didConnect) {
325325
DevLoadingView.showMessage(
326-
'Fast Refresh disconnected. Reload app to reconnect.',
326+
// Keeps 'to reconnect.' together when the banner wraps.
327+
'Fast Refresh disconnected. Reload app to\u00A0reconnect.',
327328
'error',
328329
{dismissButton: true},
329330
);

0 commit comments

Comments
 (0)