简体   繁体   English

有没有办法在博览会上使用“npx react-native link”?

[英]Is there a way to use "npx react-native link" with expo?

I am trying to link some files of my project using "npx react-native link", but it won't let me.我正在尝试使用“npx react-native link”链接我的项目的一些文件,但它不会让我这样做。 When I used react-native, it did let me.当我使用 react-native 时,它​​确实让我。 But now, with expo, I can't.但是现在,有了世博会,我不能。

If you need more details, please ask.如果您需要更多详细信息,请询问。

The react-native link command is for react-native projects that are created with react-native init command to link native dependencies. react-native link命令适用于使用react-native init命令创建的 react-native 项目,用于链接原生依赖项。

For projects that were initialized in expo, there are limitations and specific instructions to linking native code.对于在 expo 中初始化的项目,链接本机代码存在限制和特定说明。 The docs for this can be found here .可以在此处找到相关文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM