I am using react-native-maps and it works great. But I have two problems.
I am able to follow user location automatically using the
followsUserLocation
but when I move the map it keeps dragging me back to the user location. How could I fix this?I want to have refresh button, and when the user press the button, I want my map view to follow user location.
constructor() { super(); this.state = { followsUserLocation: true, }; } mapView() { return( <MapView style={styles.map} showsUserLocation followsUserLocation={this.state.followsUserLocation} initialRegion={{ latitude: 37.523814, longitude: 126.927494, latitudeDelta: 0.0922, longitudeDelta: 0.0421}}/> ) }
Any comments or advise would be really appreciated! Thanks in advance!