Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 372
Praveen Avatar asked May 17 '18 16:05

Praveen


People also ask

Can I run React Native in Android Studio?

You will need Node, the React Native command line interface, a JDK, and Android Studio. While you can use any editor of your choice to develop your app, you will need to install Android Studio in order to set up the necessary tooling to build your React Native app for Android.


Video Answer


1 Answers

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.
like image 151
Hassan Raza Avatar answered Oct 18 '22 20:10

Hassan Raza