# unistyles-v2-to-v3-migration

unistyles-v2-to-v3-migration — a Claude Code skill that moves a project from react-native-unistyles v2 to v3. It activates when asked to upgrade Unistyles or convert v2 code.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 183 installs · ★ 2978 repo stars
- Author: jpudysz
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/jpudysz/react-native-unistyles/tree/HEAD/skills/unistyles-v2-to-v3-migration/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/unistyles-v2-to-v3-migration

## What it does

The skill guides a project migration from react-native-unistyles v2 to v3, applying the changes in sequence. It covers Babel plugin setup, replacing UnistylesRegistry with StyleSheet.configure, updating imports and StyleSheet.create, removing useStyles, handling style variants, and wrapping third-party components with withUnistyles.

The project needs React Native 0.85.0+ with the New Architecture, React 19+, and react-native-nitro-modules; Unistyles 3.4.0+ requires Nitro Modules 0.37.1+. iOS builds need Xcode 16.4+ and iOS 15.1+. Expo projects require SDK 56+ and a dev client or prebuild; Expo Go is incompatible. The Babel plugin requires a root value, and must precede React Compiler in its plugin list when that compiler is used.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill unistyles-v2-to-v3-migration -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/unistyles-v2-to-v3-migration/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/unistyles-v2-to-v3-migration/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill unistyles-v2-to-v3-migration -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/unistyles-v2-to-v3-migration/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill unistyles-v2-to-v3-migration -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/unistyles-v2-to-v3-migration/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install jpudysz/react-native-unistyles skills/unistyles-v2-to-v3-migration
```

2. **Manually: put the files in place**
- File: `.github/skills/unistyles-v2-to-v3-migration/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill unistyles-v2-to-v3-migration -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/jpudysz/react-native-unistyles --path skills/unistyles-v2-to-v3-migration
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/unistyles-v2-to-v3-migration/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add jpudysz/react-native-unistyles --skill unistyles-v2-to-v3-migration -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/jpudysz/react-native-unistyles/tree/HEAD/skills/unistyles-v2-to-v3-migration/SKILL.md

## When to use it
- migrate a project from react-native-unistyles v2 to v3
- replace UnistylesRegistry with StyleSheet.configure
- remove useStyles and update stylesheet creation
- configure Babel to process Unistyles styles

## Example prompts
- Migrate this project from react-native-unistyles v2 to v3.
- Upgrade Unistyles to v3 and update the project APIs.
- Convert this codebase to use react-native-unistyles v3.

## Similar
- [assess-react-native-migration](https://affpapa.org/en/nevibecode/skills/assess-react-native-migration.md) — skill · 2700 installs
- [dt-setup-react-native](https://affpapa.org/en/nevibecode/skills/dt-setup-react-native.md) — skill · 1200 installs
- [expo-design-system](https://affpapa.org/en/nevibecode/skills/pproenca-expo-design-system.md) — skill · 156 installs
- [vega-multi-tv-migration](https://affpapa.org/en/nevibecode/skills/vega-multi-tv-migration.md) — skill · 11600 installs
- [react-native-brownfield-migration](https://affpapa.org/en/nevibecode/skills/react-native-brownfield-migration.md) — skill · 5700 installs
- [leanback-to-compose-tv-migration](https://affpapa.org/en/nevibecode/skills/leanback-to-compose-tv-migration.md) — skill · 1200 installs

From the same set: [jpudysz/react-native-unistyles](https://affpapa.org/en/nevibecode/by/jpudysz/react-native-unistyles.md) — 2 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
