Skip to content

Commit 29db2ac

Browse files
authored
Add remote debugging deprecation header (#2081)
1 parent e0cd7db commit 29db2ac

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

packages/cli-debugger-ui/src/ui/index.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,32 @@ body.dark {
3535
input[type='checkbox'] {
3636
vertical-align: middle;
3737
}
38+
39+
.warning {
40+
box-sizing: border-box;
41+
max-width: 800px;
42+
padding: 16px;
43+
margin-bottom: 1em;
44+
border-left: 5px solid rgb(230, 167, 0);
45+
border-radius: 6px;
46+
background-color: rgb(255, 248, 230);
47+
box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
48+
color: rgb(77, 56, 0);
49+
font-size: 16px;
50+
font-weight: 500;
51+
line-height: 1.6;
52+
}
53+
54+
.warning p {
55+
margin-top: 0;
56+
}
57+
58+
.warning p:last-child {
59+
margin: 0;
60+
}
61+
62+
.dark .warning {
63+
background: rgb(77, 56, 0);
64+
border-left-color: rgb(230, 167, 0);
65+
color: rgb(255, 248, 230);
66+
}

packages/cli-debugger-ui/src/ui/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,27 @@
1414
</head>
1515
<body>
1616
<div class="content">
17+
<div class="warning">
18+
<p>
19+
Remote JavaScript debugging (this workflow) is
20+
<strong>deprecated</strong> in React Native 0.73 and will be removed
21+
in React Native 0.74.
22+
</p>
23+
<p>
24+
Please use the
25+
<strong>Open Debugger</strong> workflow to debug apps using Hermes
26+
directly. This can be accessed from the Dev Menu or by pressing
27+
<kbd class="shortcut">j</kbd> in the CLI.
28+
</p>
29+
<p>
30+
Learn more about debugging in React Native in the
31+
<strong
32+
><a href="https://reactnative.dev/docs/debugging"
33+
>refreshed docs</a
34+
></strong
35+
> 📖.
36+
</p>
37+
</div>
1738
<label for="dark">
1839
<input type="checkbox" id="dark" onclick="Page.toggleDarkTheme()" />
1940
Dark Theme

0 commit comments

Comments
 (0)