qiuxiang / react-native-amap3d

react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS
https://qiuxiang.github.io/react-native-amap3d/api/
MIT License
1.27k stars 327 forks source link

the specified child already has a parent. You must call removeView() on the child's parent first #790

Open surethink opened 1 year ago

surethink commented 1 year ago

在mapview加了两个marker,安卓手机在点击按钮返回上一页时,crash。报错:the specified child already has a parent. You must call removeView() on the child's parent first

查到一个非常类似的react-native-maps的issue: https://github.com/react-native-maps/react-native-maps/issues/2787

里面提到的解决方案是不用<Marker而是使用,但我这么做后报错,意思是MapView.Marker没有export

麻烦看下这个问题,或者允许使用

谢谢