Error in rendering child view on map
bisht2ankit opened this issue ยท 3 comments
bisht2ankit commented
Is this a bug report?
Yes
(write your answer here)
I am using react-native-maps. My requirement is to render some text and images on the mapview, so i have taken these on component inside MapView. This is working fine on ios but getting error in android "The specified child already has a parent. You must call removeView() on the child's parent first"
Have you read the Installation Instructions?
Yes
Steps to Reproduce
alvelig commented
It's not a bug. Take them outside and position absolutely:
<View style={StyleSheet.absoluteFillObject}>
<MapView style={StyleSheet.absoluteFillObject} />
<View style={{ position: 'absolute', top: 100, left: 50 }}/>
</View>
rborn commented
closing as per the new rules following the template
mahadev-khatri commented
not working