Home / Function/ installWithExpo() — ui Function Reference

installWithExpo() — ui Function Reference

Architecture documentation for the installWithExpo() function in update-dependencies.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  80d1df43_422c_bdae_c2c2_4b9a3c6bf629["installWithExpo()"]
  30cdaf3b_9156_5324_145d_5e18169a3338["update-dependencies.ts"]
  80d1df43_422c_bdae_c2c2_4b9a3c6bf629 -->|defined in| 30cdaf3b_9156_5324_145d_5e18169a3338
  58f7ab25_356a_4300_d977_fc3482b06561["installWithPackageManager()"]
  58f7ab25_356a_4300_d977_fc3482b06561 -->|calls| 80d1df43_422c_bdae_c2c2_4b9a3c6bf629
  style 80d1df43_422c_bdae_c2c2_4b9a3c6bf629 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/utils/updaters/update-dependencies.ts lines 180–194

async function installWithExpo(
  dependencies: string[],
  devDependencies: string[],
  cwd: string
) {
  if (dependencies.length) {
    await execa("npx", ["expo", "install", ...dependencies], { cwd })
  }

  if (devDependencies.length) {
    await execa("npx", ["expo", "install", "-- -D", ...devDependencies], {
      cwd,
    })
  }
}

Subdomains

Frequently Asked Questions

What does installWithExpo() do?
installWithExpo() is a function in the ui codebase, defined in packages/shadcn/src/utils/updaters/update-dependencies.ts.
Where is installWithExpo() defined?
installWithExpo() is defined in packages/shadcn/src/utils/updaters/update-dependencies.ts at line 180.
What calls installWithExpo()?
installWithExpo() is called by 1 function(s): installWithPackageManager.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free