简体   繁体   English

服务器显示 METRO 徽标和捆绑程序,而不是 react-native

[英]SERVER showing METRO logo and bundler instead of react-native

Whenever I am running command npx react-native run-android it is starting node server and showing METRO logo instead of usual react-native logo in server.每当我运行命令npx react-native run-android时,它都会启动节点服务器并在服务器中显示METRO徽标而不是通常的react-native徽标。 for reference you can see the picture below.作为参考,你可以看到下面的图片。

显示 METRO 标志而不是 react-native 标志

here a list of what I want to know:这是我想知道的清单:

  1. how to get it back to usual react-native logo like simple projects?如何让它恢复到通常的 react-native 标志,比如简单的项目?
  2. what are the possible differences/causes of this happening and why is it happening?发生这种情况的可能差异/原因是什么,为什么会发生?

Sorry for taking so long, i found why it shows metro logo, there is no problem it's from the react native version if you really wanna see the react native logo you can downgrade some versions until it shows react native logo.抱歉花了这么长时间,我找到了为什么它显示 metro logo,没有问题它来自 react native 版本如果你真的想看到 react native logo 你可以降级一些版本直到它显示 react native logo。 But I think you can stick with the current version or newest version, because it doesn't matter.但我认为你可以坚持使用当前版本或最新版本,因为没关系。

I was curious about this behavior and I started doing some research on this as well, and after few hours of research I found out that it was due to the use of react-native version 0.64.0 (latest as of today).我对这种行为很好奇,我也开始对此进行一些研究,经过几个小时的研究,我发现这是由于使用了 react-native 版本 0.64.0(截至今天最新)。 I tried to revert it back 0.63.4 (previous version) and it showed normal React logo.我试图将它恢复到 0.63.4(以前的版本),它显示了正常的 React 标志。 There's no any side affect or anything, I think they boost up the compilation process or something (I am not sure).没有任何副作用或任何东西,我认为它们会促进编译过程或其他东西(我不确定)。

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

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