简体   繁体   English

@react-navigation/native 和 react-navigation 有什么区别

[英]What is the difference between @react-navigation/native and react-navigation

So, what is the difference between those two imports when using it in our React-Native projects?那么,在我们的 React-Native 项目中使用时,这两个导入有什么区别? Thanks.谢谢。

You might have seen npm package names which follow this format - @org-name/project-name .您可能已经看到 npm package 名称遵循这种格式 - @org-name/project-name These are called scoped packages.这些称为作用域包。 You can refer this answer to know more about scoped packages.您可以参考此答案以了解有关范围包的更多信息。

Until v4.x, the react-navigation team used unscoped packages.在 v4.x 之前,react-navigation 团队使用无作用域包。 (Refer this ) (参考这个

Starting from v5.x, the react-navigation team have started using scoped packages and hence the package name format - @react-navigation/native从 v5.x 开始,react-navigation 团队已经开始使用范围包,因此 package 名称格式 - @react-navigation/native

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

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