使用React-Native-Maps和Expo加载Web地图组件时的错误

发布于 2025-02-03 16:20:25 字数 559 浏览 2 评论 0原文

我正在尝试使用Expo和React-Native在Web上运行反应映射。 在加载网页时,当所有这些控制台错误都引用了库中的加载和导出组件时,我将面临几个控制台错误。

错误:

在'./lib/components/mapview'

中找不到导出'动画'

在'./lib/components/mapview'

中找不到导出'map_types'

在'./lib/components/mapview'

导出'需要EnainativeComponent'在“ React-native-web/dist/index”

中未找到

看来它无法导入和重新出口动画,map_types,providerproptype组件,并且找不到

任何人遇到了这个问题的“需求enativecomponent”?有解决方案吗?

博览会。 :45.0.0 反应映射版本。 :0.17.7

I'm trying to run react-native-maps on web using Expo and react-native.
while loading the web page I'm facing a couple of console errors altogether when all of them referring issues with loading and exporting components at the library.

The errors:

export 'Animated' was not found in './lib/components/MapView'

export 'MAP_TYPES' was not found in './lib/components/MapView'

export 'ProviderPropType' was not found in './lib/components/MapView'

export 'requireNativeComponent' was not found in 'react-native-web/dist/index'

All the errors refring to the specific lines in the library where it's fails.

It seems that its unable to import and re-export Animated, MAP_TYPES, ProviderPropType components and can't find 'requireNativeComponent'

Has anybody faced that issue? any solution?

Expo ver. : 45.0.0
react-native-maps ver. : 0.17.7

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文