You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add "Dismiss x" button to the "Disconnected from dev server" Fast Refresh notifier message (#54445)
Summary:
Changelog: DevServer fast refresh banners now have a dismiss button but still tap anywhere to dismiss.
Add a "Dismiss x" button to the fast refresh disconnected banners in the react native DevLoadingView to act as a visual cue for the current click anywhere to dismiss gesture.
Add new parameter to the devLoadingView turbo module to determine whether a message has this dismiss button.
Differential Revision: D86420230
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DefaultDevLoadingViewImplementation.kt
+79-13Lines changed: 79 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -33,14 +33,29 @@ public class DefaultDevLoadingViewImplementation(
33
33
privatevar devLoadingPopup:PopupWindow?=null
34
34
35
35
overridefunshowMessage(message:String) {
36
-
showMessage(message, color =null, backgroundColor =null)
36
+
showMessageV2(message, color =null, backgroundColor =null, dismissButton =false)
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevLoadingViewManager.kt
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/devloading/DevLoadingModule.kt
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,22 @@ internal class DevLoadingModule(reactContext: ReactApplicationContext) :
0 commit comments