在 expo 中运行使用 react-native-cli 创建的 react-native 应用程序

在 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.

希望对你有帮助!