如何安装 React Native 应用程序而不将其发布到任何商店? [英] How can I install a React Native app without releasing it to any store?

查看:24
本文介绍了如何安装 React Native 应用程序而不将其发布到任何商店?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在 iPhone 或 Android 手机上使用我的应用,而无需将其发布到 App Store 或 Google Play 商店.

I wanna be able to use my app on my iPhone or my Android phone without the need of releasing it to App Store or Google Play Store.

推荐答案

如果你的项目是基于 React-Native-CLI 并且你的开发环境都设置好了,那么只需在其中运行命令 'react-native run-android'终点站.它将生成一个调试 apk 文件,您可以在以下目录中找到该文件:

If your project is based on React-Native-CLI and your development environment is all set-up then just run command 'react-native run-android' in the terminal. It will generate a debug apk file which you can be found in the directory:

android > app > build > output > apk > debug > app-debug.apk

android > app > build > outputs > apk > debug > app-debug.apk

您可以在调试模式下连接设备并运行上述命令,直接在您的Android手机中安装此调试apk!

You can directly install this debug apk in your android phone by connecting the device in the debugging mode and run the above command!

这篇关于如何安装 React Native 应用程序而不将其发布到任何商店?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆