MCPcopy Index your code
hub / github.com/craftreactnative/ui / showSetupInstructions

Function showSetupInstructions

cli/src/commands/init.ts:356–403  ·  view source on GitHub ↗
(installedDeps: string[])

Source from the content-addressed store, hash-verified

354}
355
356async function showSetupInstructions(installedDeps: string[]): Promise<void> {
357 const installedReanimated = installedDeps.some((dep) =>
358 dep.includes("react-native-reanimated")
359 );
360 const installedGestureHandler = installedDeps.some((dep) =>
361 dep.includes("react-native-gesture-handler")
362 );
363
364 if (installedReanimated) {
365 console.log(
366 chalk.blue("\n📋 Additional setup required for react-native-reanimated:")
367 );
368 console.log(
369 chalk.yellow("Please follow the platform-specific installation steps at:")
370 );
371 console.log(
372 chalk.cyan(
373 "https://docs.swmansion.com/react-native-reanimated/docs/3.x/fundamentals/getting-started#installation"
374 )
375 );
376 console.log(
377 chalk.gray(
378 "This includes updating your babel.config.js and platform-specific configurations."
379 )
380 );
381 }
382
383 if (installedGestureHandler) {
384 console.log(
385 chalk.blue(
386 "\n📋 Additional setup required for react-native-gesture-handler:"
387 )
388 );
389 console.log(
390 chalk.yellow("Please follow the platform-specific installation steps at:")
391 );
392 console.log(
393 chalk.cyan(
394 "https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/installation"
395 )
396 );
397 console.log(
398 chalk.gray(
399 "This includes platform-specific configurations for iOS and Android."
400 )
401 );
402 }
403}
404
405async function showManualInstallInstructions(
406 missingDeps: string[],

Callers 1

initCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected