Search code examples
reactjsreact-nativereact-native-cli

react-native init not working for react-native 0.57.1 on windows


I am using react-native-cli 2.0.1 and react-native 0.57.1 on windows 10.

However, when I create a project with react-native init projectname and try to run it with react-native run-android I get this error: enter image description here

I tried the steps that it mentions except for the first one, because when I try to run it I just get watchman: command not found.


Solution

  • yarn add @babel/runtime. This will fix the issue.