This is probably pretty simple, but without anyone anywhere online providing an actual example of how to do this, I just can't get it working.
Here is my render() function, is this all I should need to do? :
render() {
return (
<MapContainer>
<MapView.Circle
center = {{ latitude: this.state.currentLatitude || 30, longitude: this.state.currentLongitude || 120 }}
radius = { 1000 }
strokeColor = "#4F6D7A"
strokeWidth = { 2 }
/>
<MapView
style = { styles.map }
region = { this.state.mapRegion }
showsUserLocation = { true }
followUserLocation = { true }
onRegionChangeComplete = { this.onRegionChangeComplete.bind(this) }>
</MapView>
<MessageBar />
</MapContainer>
)
}
I have tried putting the MapView.Circle tag above and below the MapView tag, but it makes no difference.
Has anyone got this working?