React-native-maps: How to disable drag or any other touch event on the MapView

Created on 23 Jan 2018  路  3Comments  路  Source: react-native-maps/react-native-maps

I want to simply display the map, but do not want any user interaction on it.

Is there a way to do it?

NO ISSUE TEMPLATE question

Most helpful comment

This is not a duplicate. #1961 mentions not being able to move the map, but only to move the marker.
This issue mentions not to have any user interaction at all.

My comment on 1961 has a solution: wrap it in view with pointerEvents="none"

https://github.com/react-community/react-native-maps/issues/1961#issuecomment-393525742

hope it helps. It solved my problem

All 3 comments

No issue template, closing

Duplicate of #1961

This is not a duplicate. #1961 mentions not being able to move the map, but only to move the marker.
This issue mentions not to have any user interaction at all.

My comment on 1961 has a solution: wrap it in view with pointerEvents="none"

https://github.com/react-community/react-native-maps/issues/1961#issuecomment-393525742

hope it helps. It solved my problem

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wnqnguo picture wnqnguo  路  3Comments

nbastoWM picture nbastoWM  路  3Comments

divye01 picture divye01  路  3Comments

HiroNonoyama picture HiroNonoyama  路  3Comments

allthetime picture allthetime  路  3Comments