Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mapview hooks lag

//you should use onRegionChangeComplete to set the hook

<MapView
	loadingEnabled={true}
    showsUserLocation={true}
	showsMyLocationButton={true}
	followsUserLocation
	style={styles.maps}
	region={currentRegion}
	onRegionChangeComplete={(region) => setCurrentRegion(region)}
>
 
PREVIOUS NEXT
Tagged: #mapview #hooks #lag
ADD COMMENT
Topic
Name
7+9 =