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