react-native - 我真的可以不必在 React Native 中使用 AppRegistry.registerComponent 吗?
问题描述
昨天我发布了一个关于 React Native 的问题,其中一位回答者发布了一个没有AppRegistry.registerComponent
. 但仅使用export default <identifier>
.
我从这里读到 AppRegistry.registerComponent 非常重要,因为它为应用程序提供了“入口点”。但是为什么这个简单的export default <identifier>
工作?这是否意味着我实际上不必使用AppRegistry.registerComponent
任何东西来使其工作?在应用程序中定义入口点AppRegistery.registerComponent
有什么优势/劣势?export default
解决方案
推荐阅读
- python-3.x - 如何在循环中构建熊猫数据框的子图?
- vba - 在所有按钮上的 ms-access 中将光标更改为超链接手
- excel - Apache POI,无法获取链接网址
- android - 虚拟设备内的 Android 界面上缺少随机字母
- connection - 访问远程 EJB 出错:连接被拒绝
- ios - Firebase 存储图像缓存未更新 SWIFT
- spring-boot - 我的 Spring Cloud Config 服务器运行良好,但它不断抱怨无效参数“--spring.config.location=”
- javascript - 我正在使用 Scroll 魔法和 TimelineMax,它的行为很奇怪
- amazon-web-services - 如何使用另一个函数的角色调用无服务器 lambda 函数
- python - 如何形成基线,从原始图中减去基线并在 160 个数据帧中重复基线减法?