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

AzarouAmine picture AzarouAmine  路  52Comments

speller picture speller  路  63Comments

radubatori picture radubatori  路  46Comments

bunnakal picture bunnakal  路  51Comments

rborn picture rborn  路  75Comments