Getting Started
Migrating to 4.0
4.0 removes only what 3.9 deprecates, and nothing else changes. 3.9 is the release candidate: it warns about everything 4.0 removes. Update to 3.9, clear the warnings and the codemod report, and 4.0 is a version bump. No component API changes in 4.0.
What 4.0 removes
| Removed | Use instead | How you find it |
|---|---|---|
The Tailwind 3 preset, @nexub/tokens/tailwind | Tailwind 4 with @import "@nexub/tokens/tailwind.css" | A one-time console warning when the preset loads; nexub-migrate rule tailwind-3-preset |
Expo SDK 57 for @nexub/react-native | Expo SDK 58 or later (React Native 0.86+ stays the minimum) | The peer dependency ranges move to >=58 in 4.0; your package manager reports it |
1. Update to 3.9 and run the codemod
npx -p @nexub/tokens nexub-migrate . # dry run: report everything
npx -p @nexub/tokens nexub-migrate . --rules tailwind-3-preset
npx -p @nexub/tokens nexub-migrate . --check # CI: exit 1 if anything is left2. Move to Tailwind 4
Remove @nexub/tokens/tailwind from presets in tailwind.config.js and import the theme from your CSS instead. The utilities keep their names.
@import "tailwindcss";
@import "@nexub/tokens/tailwind.css";
@import "@nexub/themes/base";
@import "@nexub/themes/light";
@import "@nexub/themes/dark";Not using Tailwind at all? Import @nexub/react/styles.css and nothing in this step applies.
3. Expo SDK 58
Upgrade with npx expo install expo@^58.0.0 --fix. The expo-glass-effect, expo-haptics and expo-screen-capture peers follow the SDK version.
Release policy
From 3.9 to 4.0 the API is frozen: 3.9 adds no features, only the deprecations above and fixes. The same rolling-minor numbering continues after 4.0 (4.1, 4.2 …), and removals only ever happen in a major, after at least one minor of warnings.