| 354 | } |
| 355 | |
| 356 | async 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 | |
| 405 | async function showManualInstallInstructions( |
| 406 | missingDeps: string[], |