使用React-Native-Maps和Expo加载Web地图组件时的错误
我正在尝试使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论