diff --git a/src/components/MapView/MapView.tsx b/src/components/MapView/MapView.tsx index c1dd064127a9..aebd63edf559 100644 --- a/src/components/MapView/MapView.tsx +++ b/src/components/MapView/MapView.tsx @@ -3,6 +3,7 @@ import {useFocusEffect} from '@react-navigation/native'; import Mapbox, {MapState, MarkerView, setAccessToken} from '@rnmapbox/maps'; import {forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState} from 'react'; +import responder from './responder'; import utils from './utils'; import Direction from './Direction'; import CONST from '../../CONST'; @@ -63,6 +64,8 @@ const MapView = forwardRef(({accessToken, style, ma styleURL={styleURL} onMapIdle={setMapIdle} pitchEnabled={pitchEnabled} + // eslint-disable-next-line + {...responder.panHandlers} > ( ); return ( - + true, + onPanResponderTerminationRequest: () => false, +}); + +export default responder;