Check if the "new architecture" is used in this project. If it is, newArchEnabled=true should be set, and the necessary change should be added to the .env file. If it is not set newArchEnabled=false.
stop metro and also delete package-lock.json/yarn.lock when you reinstall node_modules