react-native-amap3d icon indicating copy to clipboard operation
react-native-amap3d copied to clipboard

requireNativeComponent: "AMapView" was not found in the UIManager.

Open sunandy3 opened this issue 5 years ago • 9 comments

"react-native": "0.59.8" "react-native-amap3d": "^1.1.1" "expo": "^33.0.0" 已经按照README中执行过react-native link react-native-amap3d,查看到MainApplication.java中也已经有引入的包 image image 但是在夜神安卓模拟器中执行时,还是遇到requireNativeComponent: "AMapView" was not found in the UIManager.的错误,麻烦大神帮忙看一下? image

sunandy3 avatar Aug 03 '19 15:08 sunandy3

请问怎么解决的,我也遇到了这个问题,卡了我好几天

ChenYongChao avatar Oct 09 '19 10:10 ChenYongChao

有解决的吗,急,在线等

cnLiuMing avatar Oct 23 '19 12:10 cnLiuMing

解决了吗

wangzg1030 avatar Mar 16 '20 10:03 wangzg1030

同求啊

mjlnuli avatar Apr 10 '20 03:04 mjlnuli

您解决了吗,我也遇到了这个问题

TaoQZ avatar Apr 24 '20 09:04 TaoQZ

根据 #595 的讨论,安装v2.0版本可以解决在Android上的这个问题

npm i react-native-amap3d@next

相关依赖

{
  "dependencies": {
    "react-native": "0.62.2",
    "react-native-amap3d": "^2.0.1-0"
  },
}

ghost avatar May 04 '20 10:05 ghost

2.0以上是可以解决,但是2.0以上没有Marker,Polyline,Polygon,Circle这些组件,画轨迹咋办,真实补好一个坑又挖了另外一个坑,不知道这个维护的项目组干嘛吃的

lszlsz avatar Apr 28 '21 16:04 lszlsz

升级2.0以上,就不能直接import 引入Polyline等组件,但是可以 <MapView> <MapView.Polyline coordinates={[ {latitude:22.954955,longitude:113.262153}, {latitude:23.380431,longitude:113.332191}, ]} width={10} color="rgba(0, 0, 255, 0.5)" /> </MapView>

lszlsz avatar Apr 29 '21 02:04 lszlsz