Display user location on react native maps

Mahdi Bashirpour picture Mahdi Bashirpour · Jul 13, 2018 · Viewed 11.6k times · Source

How to display user location on React Native Maps

<MapView
    region={this.props.coordinate}
>
    //My map markers
</MapView>

Answer

Ebrahim Bashirpour picture Ebrahim Bashirpour · Jul 13, 2018

set showsUserLocation true

<MapView
    region={this.props.coordinate}
    showsUserLocation={true}
  >
    //My map markers
</MapView>