@@ -5,7 +5,7 @@ import React, {
55 useRef ,
66 useState ,
77} from 'react' ;
8- import { View , useColorScheme } from 'react-native' ;
8+ import { View } from 'react-native' ;
99import MapView , { Marker , Region } from 'react-native-maps' ;
1010import { connect , useSelector } from 'react-redux' ;
1111import { withTranslation } from 'react-i18next' ;
@@ -25,7 +25,6 @@ import {
2525 BottomSheetContext ,
2626} from '@/components/ui/bottomsheet' ;
2727import TasksBottomSheetContent from './TasksBottomSheetContent' ;
28- import { darkMapStyle , lightMapStyle } from "../styles/mapStyles"
2928import TaskListPolylines from './TaskListPolylines' ;
3029
3130function TasksMapView ( props ) {
@@ -37,7 +36,6 @@ function TasksMapView(props) {
3736 uiFilters,
3837 tasksEntities,
3938 isHideUnassignedFromMap,
40- mode = 'system' ,
4139 } = props ;
4240
4341 const [ marginBottom , setMarginBottom ] = useState ( 1 ) ;
@@ -51,15 +49,6 @@ function TasksMapView(props) {
5149 const { handleOpen } = useContext ( BottomSheetContext || { } ) ;
5250 const [ modalMarkers , setModalMarkers ] = useState ( [ ] ) ;
5351
54-
55- const colorScheme = useColorScheme ( ) ;
56-
57- const activeMode = mode === 'system' ? colorScheme : mode ;
58-
59- const mapStyle = useMemo ( ( ) => {
60- return activeMode === 'dark' ? darkMapStyle : lightMapStyle ;
61- } , [ activeMode ] ) ;
62-
6352 const onMarkerPress = useCallback (
6453 ( tasksAtLocation ) => {
6554 setModalMarkers ( tasksAtLocation ) ;
@@ -155,7 +144,6 @@ function TasksMapView(props) {
155144 // We use a key prop to force the map to re-render, and cleanup markers/polylines.
156145 key = { mapKey }
157146 onRegionChangeComplete = { onRegionChangeComplete }
158- customMapStyle = { mapStyle }
159147 ref = { mapRef }
160148 style = { { flex : 1 , marginBottom } }
161149 initialRegion = { mapRegion || {
0 commit comments