Praveen
Praveen

Reputation: 91175

Running On Device from android studio run option (instead of react-native run-android command)

is there any way or framework to Running On Device from android studio to run option to launch the app. (instead of react-native run-android command)

I don't see any stuff like that from React-Native Docs.

Update: i got some info after my research. i am seeing there is a possibility to create/modify a gradle task which can run the yarn commands to launch my app. will keep posted.

Upvotes: 11

Views: 13535

Answers (2)

Hassan Raza
Hassan Raza

Reputation: 376

I had the same problem.

Solution

  1. Open your project in Android Studio
  2. Start react native packager by typing react-native start (it will pop-out a terminal for js-bundling)
  3. In android studio "Run" your App. (In case you want to use break-points "Debug-Run" your App.)
  4. You are Done.

Upvotes: 7

Bruno Mazzardo
Bruno Mazzardo

Reputation: 1586

Just open the project on android studio and hit the play button, it should work.

Upvotes: -1

Related Questions