react-native-maps / react-native-maps

React Native Mapview component for iOS + Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in rendering child view on map

bisht2ankit opened this issue · comments

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

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>

closing as per the new rules following the template

not working