Skip to content

Keep native pin when adding React element to markers #2166

@hegelstad

Description

@hegelstad

Is this a bug report?

No, more like a feature request.

Have you read the Installation Instructions?

Yes.

Environment

"react": "^16.3.0-alpha.1",
"react-native": "0.54.4",
"react-native-maps": "https://github.com/react-community/react-native-maps.git", (fetched yesterday).

Steps to Reproduce

  1. Added marker.
  2. Want custom marker which looks similar to a marker with the default Callout but "Always-On".
  3. Callouts cannot be always on simultaneously.
  4. If I add a React child to the marker, it stops rendering the native marker pin. I need the native marker pin.
  5. I could add the native pin as a image which is afaik rendered with both image and React children. But I cannot find the native pins as images, if anyone know how to extract or find the pin. Let me know.

Expected Behavior

Markers (optionally) keep the native pin when adding React children to the marker!

Actual Behavior

React children added to the marker removes the native pin.

Reproducible Demo

None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions