Issue
I'm trying to reduce the size of the marker on my map, as it is too big.
The problem is that using style = {} does not seem to work in this case.
What am I missing here?
<MapView.Marker
coordinate={{ latitude: 52.78825, longitude: 13.4324 }}
title="This should be me"
description="Some description"
image={require('../assets/icon.png')}
style={{width: 26, height: 28}}
>
Solution
you can render the marker in this manner as per documentation here:
<Marker ...>
<Image
source={require('../assets/icon.png')}
style={{width: 26, height: 28}}
resizeMode="contain"
/>
</Marker>
Answered By - kenmistry
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.