I am trying to build and run react native application in my phone. I tried with Getting Started and it's working fine. I do the following to run
cd AwesomeProject
react-native start
- Open a new tab in terminal
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
react-native run-android
and it runs in my android phone.
Now I am trying to run a project from GitHub, I did the following
git clone https://github.com/h87kg/NavigatorDemo.git
cd NavigatorDemo
react-native start
I get Command 'start' unrecognized. Did you mean to run this inside a react-native project?
error. What should I do to run this project ? Any help is appreciated. Thanks in advance.
Update
After installing dependencies npm install
I am able to run the server.
Now when I try to run react-native run-android
I get the following error
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Could not install the app on the device, see the error above.
start
command. After cd into project directory i just do react-native run-android or run-ios :S . Oh yeah and if its other's project normally you have tonpm install
the dependencies first too. – cjmlingstart
if it starts automatically, yes i have updated the question – Saahithyan Vigneswaranctrl+c
– Saahithyan Vigneswaran