Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React Native Maps how to prevent callout marker from appearing

$
0
0

I am using react native maps and would like the callout marker to stop appearing. A simple solution would be to use hideCallout(). However, users are able to click on the marker and the callout will show again. Is there any way to make it stop appearing?

  const marker = useRef(null);  ...<Marker        ref={marker}        coordinate={{coordinates}}        onPress={() => {          marker.current.hideCallout();        }}><Callout tooltip><View><Text>                You are here</Text></View></Callout></Marker>

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>