如何生成React Native项目的APK或ios文件 [英] how to generate apk or ios file of React Native project

查看:228
本文介绍了如何生成React Native项目的APK或ios文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用"create-react-native-app"和"Expo"构建一个RN项目.那么如何在Android& amp; iOS设备?我如何生成APK文件?我正在使用崇高的文字3编写代码.

I am building a RN project with "create-react-native-app" and "Expo". So how it is possible to run on Android & Ios device? How i can generate APK file? I am using sublime text 3 for writing code.

推荐答案

如果您不介意通过真实设备上的Expo应用程序打开应用程序,则只需将其发布到Expo生态系统上即可. 了解有关发布的更多信息.

If you don't mind opening your app through the Expo app on real devices, all you need is to publish it onto the Expo ecosystem. Read more about publishing.

如果您介意该额外步骤并希望按照正常方式进行操作,则需要创建一个独立的应用进行分发:

If you do mind that extra step and want to go the normal way, you need to create a standalone app for distribution:

当您准备将应用分发给最终用户时,您可以创建 独立的应用程序二进制文件(ipa或apk文件)并将其放入iOS应用程序 商店和Google Play商店. 查看构建广告的完整指南 独立应用.

When you’re ready to distribute your app to end-users, you can create a standalone app binary (an ipa or apk file) and put it in the iOS App Store and the Google Play Store. See the full guide to building a standalone app.

来源

这篇关于如何生成React Native项目的APK或ios文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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