MCPcopy Index your code
hub / github.com/callstack/agent-device / buildMetroCommand

Function buildMetroCommand

src/metro/client-metro.ts:355–371  ·  view source on GitHub ↗
(
  kind: ResolvedMetroKind,
  port: number,
  listenHost: string,
)

Source from the content-addressed store, hash-verified

353}
354
355function buildMetroCommand(
356 kind: ResolvedMetroKind,
357 port: number,
358 listenHost: string,
359): PackageManagerConfig {
360 if (kind === 'expo') {
361 return {
362 command: 'npx',
363 installArgs: ['expo', 'start', '--host', 'lan', '--port', String(port)],
364 };
365 }
366
367 return {
368 command: 'npx',
369 installArgs: ['react-native', 'start', '--host', listenHost, '--port', String(port)],
370 };
371}
372
373function startMetroProcess(
374 projectRoot: string,

Callers 1

startMetroProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected