Error: While resolving module react-native-vector-icons/MaterialIcons
, the Haste package react-native-vector-icons
was found
The file it is trying to find does in fact declare that module.
This is why it breaks now: facebook/metro#139 (comment)
Related issue: #379
The broken file: https://github.com/facebook/react-native/blob/master/local-cli/core/__fixtures__/files/package.json
Workaround
rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json
restart packager
There are some answers below for how to automate this
Using rn-cli.config.js
Using package.json