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

Error in rendering child view on map #1901

Closed
bisht2ankit opened this issue Dec 19, 2017 · 3 comments
Closed

Error in rendering child view on map #1901

bisht2ankit opened this issue Dec 19, 2017 · 3 comments

Comments

@bisht2ankit
Copy link

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
Copy link
Contributor

alvelig commented Dec 19, 2017

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
Copy link
Collaborator

rborn commented Dec 29, 2017

closing as per the new rules following the template

@Mahadev-Khatri
Copy link

not working

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

4 participants