Skip to content

Commit e934b3f

Browse files
tonyYZLwama-tw
authored andcommitted
add location info
1 parent e8ad104 commit e934b3f

File tree

6 files changed

+263
-119
lines changed

6 files changed

+263
-119
lines changed

screens/Map/MapScreen.jsx

+4-7
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ export default function MapScreen({ navigation }) {
6565
const mapView = useRef(null);
6666
const changeCenter = (newCenterLatitude, newCenterLongitude) => {
6767
mapView.current.animateToRegion({
68-
latitude: newCenterLatitude,
68+
latitude: newCenterLatitude + 0.00045,
6969
longitude: newCenterLongitude,
70-
latitudeDelta: 0.004,
71-
longitudeDelta: 0.004,
70+
latitudeDelta: 0.001,
71+
longitudeDelta: 0.001,
7272
}, 200);
7373
};
7474

@@ -224,14 +224,11 @@ export default function MapScreen({ navigation }) {
224224
cancelBtnFadeAnim={cancelBtnFadeAnim}
225225
textInputValue={textInputValue}
226226
setTextInputValue={setTextInputValue}
227-
selectedMarker={selectedMarker}
228227
setSelectedMarker={setSelectedMarker}
229228
changeCenter={changeCenter}
230229
setBottomDrawerShow={setBottomDrawerShow}
231-
estimateDistance={estimateDistance}
232-
setEstimateDistance={setEstimateDistance}
233230
getTwoPointsDistance={getTwoPointsDistance}
234-
userLocation={userLocation}
231+
handleSnapPress={handleSnapPress}
235232
/>
236233
</View>
237234
<StatusBar backgroundColor="white" />

0 commit comments

Comments
 (0)