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?
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
remove this line
type Props = {};And replace
Component<props>withComponentand run againThis 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.jsonInside the file you can find
Change this
"react-native": "^0.56.0",to"react-native": "^0.55.4",Save the file
Go to the terminal and run command
npm-installAfter installation restart project and run again