在 expo 中运行使用 react-native-cli 创建的 react-native 应用程序 [英] Run react-native app created using react-native-cli in expo

查看:59
本文介绍了在 expo 中运行使用 react-native-cli 创建的 react-native 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个 react-native 初学者.在我之前的教程中,我使用 react-native init AppName 创建了应用程序,但现在有一种使用 create-react-native-app AppName 的新方法.使用后一种方法创建的应用程序使用 expo 运行.我想知道如何运行我在 expo 中使用 react-native-cli 创建的旧应用程序.

I am a react-native beginner. In the earlier tutorials I did, I created apps using react-native init AppName but now there is a new method of using create-react-native-app AppName. Apps created using the later method are run using expo. I am wondering how I can run my old apps created using the react-native-cli in expo.

推荐答案

基本上可以使用exp命令行工具的exp convert命令来完成.

You can use the exp convert command of the exp command line tool to basically do this.

如需更多帮助,请查看此处expo commands.

For more help please check here expo commands.

如果它不适合您,请检查 将现有项目转换为与 Expo 合作

If it is not work for you then please check Converting an existing project to work with Expo

另请在此处检查相同的问题.

Also please check same question to here.

希望对你有帮助!

这篇关于在 expo 中运行使用 react-native-cli 创建的 react-native 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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