Skip to content

Error in rendering child view on map #1901

Description

@bisht2ankit

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

Activity

  1. alvelig commented on Dec 19, 2017

    @alvelig
    Contributor

    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>
    
  2. rborn commented on Dec 29, 2017

    @rborn
    Collaborator

    closing as per the new rules following the template

  3. mahadev-khatri commented on Dec 25, 2023

    @mahadev-khatri

    not working

  4. codex-solutions2019 commented on Aug 21, 2025

    @codex-solutions2019

    same issue done everything not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions