Skip to content

Commit

Permalink
docs: migration from 3.x (#6941)
Browse files Browse the repository at this point in the history
## Summary

After:

![Screenshot 2025-01-27 at 14 22
00](https://github.com/user-attachments/assets/1bfdeb90-3893-465d-9af6-0e143d41c1da)

## Test plan
  • Loading branch information
tomekzaw authored Jan 27, 2025
1 parent 59eb2c0 commit 0e1acfd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/docs-reanimated/docs/guides/migration-from-3.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
id: migration-from-3.x
title: Migrating from Reanimated 3.x to 4.x
sidebar_label: Migration from 3.x
---

:::note
Reanimated 4.x is currently in beta period and there hasn't been a stable release yet. Migration steps are yet to be confirmed.
:::

### New Architecture only

Reanimated 4.x supports only the [New React Native architecture](https://reactnative.dev/architecture/landing-page) and drops support for the old architecture along with the legacy renderer (commonly known as Paper) entirely. If your app still runs on the old architecture, please consider adopting the New Architecture or stay with latest 3.x release.

### Changes in public API

On the API surface level, Reanimated 4.x doesn't introduce any breaking changes between 3.x and 4.x. All the code you've written in Reanimated v2 or v3 API works in 4.x without any changes. Animations based on shared values will work the same way as before, simultaneously and interchangeably with CSS animations and transitions. This means you can adopt CSS animations and transitions in your codebase incrementally at your own pace.

### Integration with other libraries

All integrations with other third-party libraries such as [React Native Gesture Handler](https://docs.swmansion.com/react-native-gesture-handler/docs/) or [React Native Skia](https://shopify.github.io/react-native-skia/) work the same as on 3.x.

### Migrating from 2.x

For the migration guide between 2.x and 3.x versions please consult [Migration from 2.x to 3.x](/docs/guides/migration-from-2.x.md).

0 comments on commit 0e1acfd

Please sign in to comment.