Skip to content

Commit

Permalink
fix[DevTools]: fix HostComponent naming in filters for Native
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxyq committed Jan 16, 2025
1 parent 87276ef commit 14ea78e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/react-devtools-core/webpack.standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ module.exports = {
__EXTENSION__: false,
__PROFILE__: false,
__TEST__: NODE_ENV === 'test',
__IS_NATIVE__: true,
'process.env.DEVTOOLS_PACKAGE': `"react-devtools-core"`,
'process.env.DEVTOOLS_VERSION': `"${DEVTOOLS_VERSION}"`,
'process.env.EDITOR_URL': EDITOR_URL != null ? `"${EDITOR_URL}"` : null,
Expand Down
1 change: 1 addition & 0 deletions packages/react-devtools-fusebox/webpack.config.frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module.exports = {
__EXTENSION__: false,
__PROFILE__: false,
__TEST__: NODE_ENV === 'test',
__IS_NATIVE__: true,
'process.env.DEVTOOLS_PACKAGE': `"react-devtools-fusebox"`,
'process.env.DEVTOOLS_VERSION': `"${DEVTOOLS_VERSION}"`,
'process.env.EDITOR_URL': EDITOR_URL != null ? `"${EDITOR_URL}"` : null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,9 @@ export default function ComponentsSettings({
<option value={ElementTypeFunction}>function</option>
<option value={ElementTypeForwardRef}>forward ref</option>
<option value={ElementTypeHostComponent}>
dom nodes (e.g. &lt;div&gt;)
{__IS_NATIVE__

Check failure on line 480 in packages/react-devtools-shared/src/devtools/views/Settings/ComponentsSettings.js

View workflow job for this annotation

GitHub Actions / Run eslint

'__IS_NATIVE__' is not defined
? 'host components (e.g. &lt;RCTText&gt;)'
: 'dom nodes (e.g. &lt;div&gt;)'}
</option>
<option value={ElementTypeMemo}>memo</option>
<option value={ElementTypeOtherOrUnknown}>other</option>
Expand Down

0 comments on commit 14ea78e

Please sign in to comment.