Skip to content

docs(skill): version-aware Reanimated default mapping (v2/v3 vs v4)#39

Merged
janicduplessis merged 1 commit intomainfrom
@janic/skill-reanimated-version-defaults
Apr 14, 2026
Merged

docs(skill): version-aware Reanimated default mapping (v2/v3 vs v4)#39
janicduplessis merged 1 commit intomainfrom
@janic/skill-reanimated-version-defaults

Conversation

@janicduplessis
Copy link
Copy Markdown
Collaborator

Summary

Reanimated v4 changed spring defaults significantly — from a bouncy spring (damping 10, stiffness 100, mass 1) to a critically damped snappy spring (damping 120, stiffness 900, mass 4). Their rationale was that the old physics-based params were too sensitive to start/end conditions.

The migration skill now detects the Reanimated version from package.json in Phase 1 and uses the correct default mapping table, so migrated animations preserve their original behavior regardless of which Reanimated version the project uses.

Test Plan

  • Verify skill correctly maps defaults when migrating from Reanimated v2/v3 projects
  • Verify skill correctly maps defaults when migrating from Reanimated v4 projects

Reanimated v4 changed spring defaults significantly (damping 120,
stiffness 900, mass 4 — critically damped). The skill now detects the
Reanimated version from package.json in Phase 1 and uses the correct
default table for migration.
@janicduplessis janicduplessis merged commit 0247b5d into main Apr 14, 2026
5 checks passed
@janicduplessis janicduplessis deleted the @janic/skill-reanimated-version-defaults branch April 14, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant