Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
surethink opened this issue Apr 18, 2023 · 0 comments

Comments

@surethink
Copy link

surethink commented Apr 18, 2023

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

查到一个非常类似的react-native-maps的issue:
react-native-maps/react-native-maps#2787

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

麻烦看下这个问题,或者允许使用<MapView.Marker>

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant