How to display user location on React Native Maps
<MapView
region={this.props.coordinate}
>
//My map markers
</MapView>
set showsUserLocation
true
<MapView
region={this.props.coordinate}
showsUserLocation={true}
>
//My map markers
</MapView>
Either you can use property of MapView
called showsUserLocation
mentioned here
Or you can fetch user location using GeoLocation and display it on Marker
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With