The solution is to change the blacklist.js file in module metro-config files as answered above. But each time you run npm/yarn install you will have to change it again.
So I came up with a solution that will save you time form going to the file and changing it each time:
I used a library that edit files using JavaScript:
- Install Replace-in-file module:
npm install --save replace-in-file
- Create a file at the same level as - node_modulefolder name it:- metro-fix.jsper example.
 
- Copy paste this script in it: 
//Load the library
const replace = require('replace-in-file');
// path for metro config file
const path = 'node_modules/metro-config/src/defaults/blacklist.js';
// creating options for editing the file
const options = [
  {
    files: path,
    from: 'modules[/',
    to: 'modules[\\/',
  },
  {
    files: path,
    from: 'react[/',
    to: 'react[\\/',
  },
  {
    files: path,
    from: 'dist[/',
    to: 'dist[\\/',
  },
];
try {
  let results;
  // looping on each option
  options.forEach(e => {
    results = replace.sync(e);
    console.log('Replacing "'+e.from+'" by "'+e.to+'"  results:', results[0].hasChanged);
  });
} catch (error) {
  console.error('Error occurred:', error);
}
- Now each time you run npm installjust run:
node metro-fix.js
See Replace-in-file docs.