简体   繁体   中英

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.

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.

只需在android studio上打开项目并按下播放按钮,它应该可以工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM