Module naming collision error with jest-haste-map + Amplify + Expo

Are you having this trouble, actually this solution has been described before but I had to place the pieces together and now I will like to share how to solve it.

  1. Add packagerOpts to your app.json file
"packagerOpts": {"config": "./metro.config.js"}

2. If you don’t have a metro.config.js file create one in your root folder and then add this snippet

const blacklist = require('metro').createBlacklist;module.exports = { 
resolver: {
blacklistRE: blacklist([/#current-cloud-backend\/.*/])

3. run expo start, I hope I save you some time! Happy Hacking!