I followed following link to get started with react-native
Getting started with react native
I tried to create native app without expo so i as per documentation i followed following command
npm install -g react-native-cli
react-native init AwesomeProject
After run android command
react-native run-android
It gave me following error on emulator
So i used start command to run metro server
react-native start
This command gave me another error in console
There are a problem with Metro using some NPM and Node versions.
You hay 2 alternatives:
\node_modules\metro-config\src\defaults\blacklist.js
and change this code:var sharedBlacklist = [
/node_modules[/\\]react[/\\]dist[/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
to this:
var sharedBlacklist = [
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
/website\/node_modules\/.*/,
/heapCapture\/bundle\.js/,
/.*\/__tests__\/.*/
];
Please note that if you run an npm install or a yarn install you need to change the code again.