Description
After upgrading my project to Expo SDK 54, which involved updating react-native-reanimated to version 4.1.0, I've encountered an issue where my animations are no longer working correctly.
When I start the development server, I receive the following warning multiple times in the console:
[Reanimated] Seems like you are using a Babel plugin `react-native-reanimated/plugin`. It was moved to `react-native-worklets` package. Please use `react-native-worklets/plugin` instead.
Following the migration guide and the warning message, I updated my babel.config.js to use the new plugin. Previously, my animations were working perfectly with react-native-reanimated: "~3.17.4".
Steps to reproduce
However, since making the required changes, the screen transition animations in my application no longer function. The views still change, but the animations themselves do not execute, resulting in an abrupt and broken user experience.
Configuration
Here is my current babel.config.js configuration:
module.exports = function (api) {
api.cache(true);
return {
presets: [['babel-preset-expo', { jsxImportSource: 'nativewind' }], 'nativewind/babel'],
plugins: ['react-native-worklets/plugin'],
};
};
Of course, here is the translation of your issue formatted for a GitHub report.
Title: [Bug]: Animations not working after upgrading to react-native-reanimated v4.1.0 and Expo SDK 51
Issue Description
After upgrading my project to Expo SDK 51, which involved updating react-native-reanimated to version 4.1.0, I've encountered an issue where my animations are no longer working correctly.
When I start the development server, I receive the following warning multiple times in the console:
[Reanimated] Seems like you are using a Babel plugin react-native-reanimated/plugin. It was moved to react-native-worklets package. Please use react-native-worklets/plugin instead.
Following the migration guide and the warning message, I updated my babel.config.js to use the new plugin. Previously, my animations were working perfectly with react-native-reanimated: "~3.17.4".
However, since making the required changes, the screen transition animations in my application no longer function. The views still change, but the animations themselves do not execute, resulting in an abrupt and broken user experience.
Configuration
Here is my current babel.config.js configuration:
JavaScript
module.exports = function (api) {
api.cache(true);
return {
presets: [['babel-preset-expo', { jsxImportSource: 'nativewind' }], 'nativewind/babel'],
plugins: ['react-native-worklets/plugin'],
};
};
Relevant Package Versions
- "expo": "^54.0.0",
- react-native-reanimated: 4.1.0
- react-native-worklets-core: 0.5.1
- nativewind: 4.1.23
- react-native: 0.81.4
Expected Behavior
The screen transition animations should work smoothly as they did with react-native-reanimated version 3.
Actual Behavior
The animations do not run when navigating between screens. The console displays the warning about the Babel plugin being moved, even after the configuration has been updated.
Snack or a link to a repository
https://github.com/Waldid32
Reanimated version
4.1.0
Worklets version
0.5.1
React Native version
0.81.4
Platforms
iOS, Android
JavaScript runtime
None
Workflow
Expo Go
Architecture
None
Build type
No response
Device
Real device
Host machine
Windows
Device model
No response
Acknowledgements
Yes
Description
After upgrading my project to Expo SDK 54, which involved updating react-native-reanimated to version 4.1.0, I've encountered an issue where my animations are no longer working correctly.
When I start the development server, I receive the following warning multiple times in the console:
Following the migration guide and the warning message, I updated my babel.config.js to use the new plugin. Previously, my animations were working perfectly with react-native-reanimated: "~3.17.4".
Steps to reproduce
However, since making the required changes, the screen transition animations in my application no longer function. The views still change, but the animations themselves do not execute, resulting in an abrupt and broken user experience.
Configuration
Here is my current babel.config.js configuration:
Of course, here is the translation of your issue formatted for a GitHub report.
Title: [Bug]: Animations not working after upgrading to react-native-reanimated v4.1.0 and Expo SDK 51
Issue Description
After upgrading my project to Expo SDK 51, which involved updating react-native-reanimated to version 4.1.0, I've encountered an issue where my animations are no longer working correctly.
When I start the development server, I receive the following warning multiple times in the console:
[Reanimated] Seems like you are using a Babel plugin
react-native-reanimated/plugin. It was moved toreact-native-workletspackage. Please usereact-native-worklets/plugininstead.Following the migration guide and the warning message, I updated my babel.config.js to use the new plugin. Previously, my animations were working perfectly with react-native-reanimated: "~3.17.4".
However, since making the required changes, the screen transition animations in my application no longer function. The views still change, but the animations themselves do not execute, resulting in an abrupt and broken user experience.
Configuration
Here is my current babel.config.js configuration:
JavaScript
module.exports = function (api) {
api.cache(true);
return {
presets: [['babel-preset-expo', { jsxImportSource: 'nativewind' }], 'nativewind/babel'],
plugins: ['react-native-worklets/plugin'],
};
};
Relevant Package Versions
Expected Behavior
The screen transition animations should work smoothly as they did with react-native-reanimated version 3.
Actual Behavior
The animations do not run when navigating between screens. The console displays the warning about the Babel plugin being moved, even after the configuration has been updated.
Snack or a link to a repository
https://github.com/Waldid32
Reanimated version
4.1.0
Worklets version
0.5.1
React Native version
0.81.4
Platforms
iOS, Android
JavaScript runtime
None
Workflow
Expo Go
Architecture
None
Build type
No response
Device
Real device
Host machine
Windows
Device model
No response
Acknowledgements
Yes