step 1. npm i react-native-reanimated
step 2. add plugin babel.config.js
module.exports = { presets: ['module:metro-react-native-babel-preset'],
plugins: [ 'react-native-reanimated/plugin', ],
};
step 3 When trying to run the code after close the terminal I still I'm facing same issue
Error: Reanimated 2 failed to create a worklet, maybe you forgot to add Reanimated's babel plugin
step 4. After that, i close the current terminal and run this command
npm start -- --reset-cache
Enjoy !
No comments:
Post a Comment