问题描述
我希望能够在 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手机中安装此调试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 应用程序而不将其发布到任何商店?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!