SwipeUI
DocsCLI

doctor

Check your setup and get a fix for each problem.

npx @swipeui/cli doctor
Terminal
┌  swipeui doctor
◇  Expo SDK 58 · React Native 0.88.0 · pnpm · alias @/ → src/
│  ✔ Expo SDK 58 (supported: 57 and 58)
│  ✔ New Architecture (always on from React Native 0.82; you have 0.88.0)
│  ✔ Uniwind with Metro and global.css
│  ✖ class-variance-authority is missing (button, text need it).
│    Fix: npx expo install class-variance-authority
│  ✔ Licence key: not set (only needed for Pro)
└  1 problem

It exits with code 2 when it finds a problem, so you can use it in CI.

What it checks

  • Versions: a supported Expo SDK, and Expo modules in bare apps.
  • New Architecture: on (always, from React Native 0.82).
  • Uniwind: the Metro wrapper, global.css with its imports, and its import from your root component.
  • Tokens: every SwipeUI token defined in global.css.
  • Reanimated: react-native-worklets installed and the Babel plugin loaded.
  • Your SwipeUI files: every package they import is installed, their imports resolve in your project, and each file has its version line.
  • components.json: present, with the SwipeUI registry.
  • Licence key: whether one is set (never its value), that it isn't in an EXPO_PUBLIC_ variable, and that .env*.local is gitignored.

doctor works offline: it doesn't contact the registry.

On this page