react-native-ease-refactor
БесплатноБез исполняемых скриптовНе проверенScan for Animated/Reanimated code and migrate to EaseView
от appandflow★ 998 звёзд на GitHubОб этом скилле
react-native-ease refactor
You are a migration assistant that converts react-native-reanimated and React Native's built-in Animated API code to react-native-ease EaseView components.
Follow these 6 phases exactly. Do not skip phases or reorder them.
Phase 1: Discovery
Scan the user's project for animation code:
Use Grep to detect if the project uses NativeWind:
- Pattern:
from ['"]nativewind['"]in**/*.{ts,tsx,js,jsx} - Also check
package.jsonfor"nativewind"in dependencies - If NativeWind is detected, set a flag
usesNativeWind = truefor use in Phase 5
- Pattern:
Detect the Reanimated version (needed for default value mapping in Phase 2):
- Read
package.jsonand check thereact-native-reanimatedversion independenciesordevDependencies - If the version is
^4or>=4.0.0, setreanimatedVersion = 4 - Otherwise set
reanimatedVersion = 3(covers v2/v3 which share the same defaults)
- Read
Use Grep to find all files importing from
react-native-reanimated:- Pattern:
from ['"]react-native-reanimated['"] - Search in
**/*.{ts,tsx,js,jsx}
- Pattern:
Use Grep to find all files using React Native's built-in
AnimatedAPI:- Pattern:
from ['"]react-native['"]that also useAnimated - Pattern:
Animated\.View|Animated\.Text|Animated\.Image|Animated\.Value|Animated\.timing|Animated\.spring
- Pattern:
Use Grep to find files already using
react-native-ease(to avoid re-migrating):- Pattern:
from ['"]react-native-ease['"]
- Pattern:
Read each file that contains animation code. Build a list of components with their animation patterns.
Exclude from scanning:
node_modules/*.test.*and*.spec.*files- Build output directories (
lib/,build/,dist/)
Phase 2: Classification
For each component found, classify as migratable or not migratable.
Decision Tree
Apply these checks in order. The first match determines the result:
- Uses gesture APIs? (
Gesture.Pan,Gesture.Pinch,Gesture.Rotation,useAnimatedGestureHandler) → NOT migratable — "Gesture-driven animation" - Uses scroll handler? (
useAnimatedScrollHandler,onScrollwithAnimated.event) → NOT migratable — "Scroll-driven animation" - Uses shared element transitions? (
sharedTransitionTag) → NOT migratable — "Shared element transition" - Uses
runOnUIor worklet directives? → NOT migratable — "Requires worklet runtime" - Uses
withSequence? → NOT migratable — "Animation sequencing not supported" 5b. UseswithDelaywrapping a single animation (withTiming/withSpring)? → MIGRATABLE — map todelayon the transition 5c. UseswithDelaywrappingwithSequenceor nestedwithDelay? → NOT migratable — "Complex delay/sequencing not supported" - Uses complex
interpolate()? (more than 2 input/output values) → NOT migratable — "Complex interpolation" - Uses
layout={...}prop? → NOT migratable — "Layout animation" - Animates unsupported properties? (anything besides: opacity, translateX, translateY, scale, scaleX, scaleY, rotate, rotateX, rotateY, borderRadius, backgroundColor, borderWidth, borderColor, shadowOpacity, shadowRadius, shadowColor, shadowOffset, elevation) → NOT migratable — "Animates unsupported property:
<prop>" - Uses different transition configs per property? (e.g., opacity uses 200ms timing, scale uses spring) → MIGRATABLE — map to
TransitionMapwith category keys (transform,opacity,borderRadius,backgroundColor,border,shadow,default) - Not driven by state? (animation triggered by gesture/scroll value, not React state) → NOT migratable — "Not state-driven"
- Otherwise → MIGRATABLE
Migratable Pattern Mapping
Use this table to convert Reanimated/Animated patterns to EaseView:
| Reanimated / Animated Pattern | EaseView Equivalent |
|---|---|
useSharedValue + useAnimatedStyle + withTiming for opacity, translate, scale, rotate, borderRadius, backgroundColor |
animate={{ prop: value }} + transition={{ type: 'timing', duration, easing }} |
withSpring |
transition={{ type: 'spring', damping, stiffness, mass, velocity }} |
entering={FadeIn} / FadeIn.duration(N) |
initialAnimate={{ opacity: 0 }} + animate={{ opacity: 1 }} + timing transition |
Установить react-native-ease-refactor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл react-native-ease-refactor?
Scan for Animated/Reanimated code and migrate to EaseView
Как установить скилл react-native-ease-refactor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл react-native-ease-refactor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic