Closed Elyx0 closed 6 years ago
Actually it's worse, it seem random.
I don't get how you rendered the first example, it does not work at all for me.
I worked around this by using 2 markers for the same coordinates which is.. not pretty.
One using image
prop on the MapView.marker
and the second one using a custom MapView.Marker
view to render the text part.
Fun fact is image gets scaled down on the simulator but the release apk has the images in full size.
{mapInfo.markers.map((marker,i) => (
<MapView.Marker
key={i}
coordinate={{latitude:marker.Latitude,longitude:marker.Longitude}}
>
<Pmarker {...marker} />
</MapView.Marker>
))}
{mapInfo.markers.map((marker,i) => (
<MapView.Marker
key={`img-${i}`}
title={pokemonsNames[marker.PokedexTypeId-1]}
coordinate={{latitude:marker.Latitude,longitude:marker.Longitude}}
image={pokemonsImages[marker.PokedexTypeId]}
/>
))}
Merge to #1870
Images in Custom Markers from a component don't seem to render in Android on latest RN.
Render the image nicely but then declaring
and trying to do
doesn't render an image.