React Native iOS和Android文件夹不存在 [英] React Native iOS and Android folders not present

查看:1598
本文介绍了React Native iOS和Android文件夹不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手做出反应原生,我在理解应用程序的文件夹结构时遇到了一些麻烦,应该在创建时应该出现在项目文件夹中。基本上,在使用npm创建项目时,我会获得一些启动文件(App.js等)和node_modules文件夹。我已经启动并运行了expo,它也创建了.expo文件夹。

I'm new to react native, and I've been having some trouble understanding the folder structure of the app which should supposedly be present in the project folder on creation. Basically, when creating the project with npm, I get some starting files (App.js etc.) and a node_modules folder. I've got it up and running with expo, which created the .expo folder as well.

然而,当我去做官方文档或查看插件/插件时在git上,他们多次谈论项目根目录中的android和iOS文件夹。但他们无处可见。然后我得到了一些提示,我可以安装并运行react-native-upgrade-git,据称会生成这些丢失的文件夹。但这也不起作用。

However, when I go to react's official documentation or look into plugins/addons on git they talk several times about an android and an iOS folder in the project root. But they are nowhere to be seen. I then got some hints that I could install and run react-native-upgrade-git, which allegedly would generate these missing folders. But that didn't work either.

那么我错过了什么?这些文件夹位于何处?

So what have I missed? Where are those folders located?

编辑:这是Youtube教程中的屏幕转储,显示了我正在寻找的项目结构:

Here is a screen dump from a Youtube tutorial showing the project structure I'm looking for:

推荐答案

世博会的其中一点React Native的顶部是你没有下载到android或ios代码。世博会为您处理这些文件夹,您无需与它们互动。您需要这些文件夹吗?如果是这样,你将不得不分开。以下是执行此操作的文档:与世博会分离

One of the points of Expo on top of React Native is that you don't go down to android or ios code. Expo deals with those folders for you, you don't need to interact with them. Is there a reason you need those folders? if so, you will have to detach. Here's the documentation to do so: Detaching with expo

这篇关于React Native iOS和Android文件夹不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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