Android studio error code 500 URL:http://10.0.2.2:8081? index.delta?.... while react native run

681 Views Asked by At

I'm absolutely new to react native. I installed react native and android studio as instructed in react native website -> Getting Started. But when I run the very basic react native app in my system I got the error as attached the image. How to make it work successfully without error?

enter image description here

I'm using Android studio Version -> 3.1.3 JDK -> 8. something (exactly don't know. sorry) Phython 2.7.15

Please help me.

Thanks, Guru

1

There are 1 best solutions below

10
Jay Thummar On

remove this line type Props = {};

And replace Component<props> with Component and run again

This sintext is not needed in .js file it is allowed in .ts file so

Update

Down grade the react-native version and it will solve your problem

So go to your project directory and find file package.json

Inside the file you can find

"dependencies:{
     ....
  "react-native": "^0.56.0",
   ......
}

Change this "react-native": "^0.56.0", to "react-native": "^0.55.4",

Save the file

Go to the terminal and run command npm-install

After installation restart project and run again