MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / is_react_native_metro_target

Function is_react_native_metro_target

packages/server/src/devtools.rs:628–636  ·  view source on GitHub ↗
(entry: &Value)

Source from the content-addressed store, hash-verified

626}
627
628fn is_react_native_metro_target(entry: &Value) -> bool {
629 entry.get("reactNative").is_some()
630 || string_value(entry, "devtoolsFrontendUrl")
631 .is_some_and(|url| url.contains("/debugger-frontend/"))
632 || string_value(entry, "webSocketDebuggerUrl")
633 .is_some_and(|url| url.contains("/inspector/debug"))
634 || string_value(entry, "description")
635 .is_some_and(|description| description.to_ascii_lowercase().contains("react native"))
636}
637
638fn is_preferred_react_native_metro_target(entry: &Value) -> bool {
639 entry

Callers 1

Calls 2

string_valueFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected