While developing react native apps, you may face unexpected errors that appear from nowhere. I faced one such react native error recently. It says Requiring unknown module “1171”. If you are sure the module is there, try restarting Metro Bundler. You may also want to run `yarn`, or `npm install` (depending on your environment).
In many cases, solutions given with the errors don’t work. But, here the solution to restart metro bundler worked for me. I closed the metro bundler terminal and try again running the project using react-native run-android and the issue was gone somewhere!
This is how I fixed this specific react native error and I hope this will help you too.