@@ -35,7 +35,6 @@ export default function MapScreen({ navigation }) {
35
35
const snapPoints = useMemo ( ( ) => [ '15%' , '40%' , '95%' ] , [ ] ) ;
36
36
37
37
const handleSheetChanges = useCallback ( ( index ) => {
38
- console . log ( 'handleSheetChanges' , index ) ;
39
38
setBottomDrawerState ( index ) ;
40
39
} , [ ] ) ;
41
40
@@ -60,8 +59,6 @@ export default function MapScreen({ navigation }) {
60
59
const [ searchBarHeight , setSearchBarHeight ] = useState ( 0 ) ;
61
60
const [ textInputValue , setTextInputValue ] = useState ( '' ) ;
62
61
63
- const [ estimateDistance , setEstimateDistance ] = useState ( null ) ;
64
-
65
62
const mapView = useRef ( null ) ;
66
63
const changeCenter = ( newCenterLatitude , newCenterLongitude ) => {
67
64
mapView . current . animateToRegion ( {
@@ -108,7 +105,6 @@ export default function MapScreen({ navigation }) {
108
105
latitude : currentLocation . coords . latitude ,
109
106
longitude : currentLocation . coords . longitude ,
110
107
} ) ;
111
- console . log ( currentLocation . coords . latitude , ', ' , currentLocation . coords . longitude ) ;
112
108
} ,
113
109
) ;
114
110
} ) ( ) ;
@@ -165,7 +161,6 @@ export default function MapScreen({ navigation }) {
165
161
setTextInputValue ( marker . name ) ;
166
162
handleSnapPress ( 1 ) ;
167
163
changeCenter ( marker . latitude - 0.0006 , marker . longitude ) ;
168
- setEstimateDistance ( getTwoPointsDistance ( marker . latitude , marker . longitude ) ) ;
169
164
} }
170
165
>
171
166
< CustomMarkerView
0 commit comments