I have tried to add this in the bable file too
module.exports = {
presets: [
'module:metro-react-native-babel-preset',
'react-native-reanimated/plugin'
],
plugins: [
'react-native-reanimated/plugin',
],
};
Is there any other way to solve it
2
Answers
If you are using the lower version for the react-native-reanimated package
Then add the below line in the android/build.gradlew file before the allProjects.
And remove the plugin from the babel.config.js
It worked for me.
I got this same error. While working with Drawer Navigator,
Then I added the dependency
"react-native-reanimated": "^3.5.4",
Then I added the plugins in babel.config.js
Then closed the metro server and cleared the cache using this command
I am using react native cli -> So cleared the cache using this command
And I’ve runned again the command then it is working fine