How do I turn of user interaction for an element in React native, similar to IOS, MapView in this case.
userInteraction = false
Thanks
Edit: MapView has been removed for React Native, you can find the new docs over at react-community/react-native-maps/. Thanks @Siraj for pointing this out!
You can use the differents props MapView
has to disable interaction:
pitchEnabled
rotateEnabled
scrollEnabled
zoomEnabled
If you feel it's not enough, feel free to submit a PR to React native to implement userInteraction
as a prop directly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With