@@ -60,6 +60,7 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
60
60
private readonly options : RNWelcomeOptions ;
61
61
62
62
#reactNativeVersion: string | undefined ;
63
+ #isProfilingBuild: boolean = false ;
63
64
64
65
static instance ( options : RNWelcomeOptions ) : RNWelcomeImpl {
65
66
if ( ! rnWelcomeImplInstance ) {
@@ -81,14 +82,19 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
81
82
super . wasShown ( ) ;
82
83
this . registerCSSFiles ( [ rnWelcomeStyles ] ) ;
83
84
this . render ( ) ;
84
- UI . InspectorView . InspectorView . instance ( ) . showDrawer ( { focus : true , hasTargetDrawer : false } ) ;
85
+
86
+ if ( ! this . #isProfilingBuild) {
87
+ UI . InspectorView . InspectorView . instance ( ) . showDrawer ( { focus : true , hasTargetDrawer : false } ) ;
88
+ }
85
89
}
86
90
87
91
modelAdded ( model : SDK . ReactNativeApplicationModel . ReactNativeApplicationModel ) : void {
88
92
model . ensureEnabled ( ) ;
89
93
model . addEventListener (
90
94
SDK . ReactNativeApplicationModel . Events . MetadataUpdated , this . #handleMetadataUpdated, this ) ;
95
+
91
96
this . #reactNativeVersion = model . metadataCached ?. reactNativeVersion ;
97
+ this . #isProfilingBuild = model . metadataCached ?. unstable_isProfilingBuild || false ;
92
98
}
93
99
94
100
modelRemoved ( model : SDK . ReactNativeApplicationModel . ReactNativeApplicationModel ) : void {
@@ -99,6 +105,7 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
99
105
#handleMetadataUpdated(
100
106
event : Common . EventTarget . EventTargetEvent < Protocol . ReactNativeApplication . MetadataUpdatedEvent > ) : void {
101
107
this . #reactNativeVersion = event . data . reactNativeVersion ;
108
+ this . #isProfilingBuild = event . data . unstable_isProfilingBuild || false ;
102
109
103
110
if ( this . isShowing ( ) ) {
104
111
this . render ( ) ;
@@ -136,7 +143,7 @@ export class RNWelcomeImpl extends UI.Widget.VBox implements
136
143
) . toString ( ) ;
137
144
138
145
const launchId = Root . Runtime . Runtime . queryParam ( 'launchId' ) ;
139
-
146
+
140
147
render ( html `
141
148
< div class ="rn-welcome-panel ">
142
149
< header class ="rn-welcome-hero ">
0 commit comments