Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated’s babel plugin?

I have found this issue on this link.
These are the steps that I have followed for having my project up and running without any errors:

  1. Run yarn add react-native-reanimated@next react-native-gesture-handler
  2. I have added import 'react-native-gesture-handler' to App.tsx file at the top of the file before importing any packages
  3. You should update the babel.config.js file and add react-native-reanimated/plugin to plugins
module.exports = {
  presets: ["module:metro-react-native-babel-preset"],
  plugins: [
    "react-native-reanimated/plugin",
  ],
};
  1. The last thing you should do is run your project by removing the cache yarn start --reset-cache

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)