What I have Done to cause the Error: I have a freshly installed Bare React Native Project . I wanted to use Drawer Navigation and had to install React Native Reanimated 2.3.0-alpha.2 .
what I have already tried to resolve the error
- I have installed fresh bare react native project
- Cleared Metro Cache
- Tried to use Reanimated 2.0.0
- I have Followed all the steps from https://www.reanimated2.com/docs/next/installation.
Error
BUNDLE ./index.js
error: index.js: Cannot find module 'babel-plugin-r' Require stack:
- D:\Work\React Native\React Native with Node\healthapp\node_modules@babel\core\lib\config\files\plugins.js
- D:\Work\React Native\React Native with Node\healthapp\node_modules@babel\core\lib\config\files\index.js
- D:\Work\React Native\React Native with Node\healthapp\node_modules@babel\core\lib\index.js
- D:\Work\React Native\React Native with Node\healthapp\node_modules\metro-transform-worker\src\index.js
- D:\Work\React Native\React Native with Node\healthapp\node_modules\metro\src\DeltaBundler\Worker.js
- D:\Work\React Native\React Native with Node\healthapp\node_modules\metro\node_modules\jest-worker\build\workers\processChild.js