First, npm install -g react-native-cli command executed well. but react-native init SampleReactNativeProject command generated error as - 'react-native' is not recognized as an internal or external command, operable program or batch file.
I tried lot of solutions but not a single solution works for me.
I have installed node 8.9.4, npm 5.6.0, Android Studio 3.2.1. Also I set variables - C:\Users\JOHN\AppData\Roaming\npm, D:\Android_Data\Android\sdk\platform-tools, D:\Android_Data\Android\sdk\platform-tools\adb.exe, C:\Program Files\nodejs,
What to do now? Any suggestions?