-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 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
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/docs-reanimated/docs/guides/migration-from-3.x.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |