import React from 'react'; import {StyleSheet, View} from 'react-native'; import MapView, {Circle, Marker} from 'react-native-maps'; const PlayerMapView = ({ userLocation, visibleCache, heading }) => { // Initialisation ------------- // State ---------------------- // Handlers ------------------- // View ----------------------- if (!userLocation) return null; return ( {visibleCache ? ( ) : null} {heading !== null && heading !== undefined && ( )} ); }; const styles = StyleSheet.create({ coneWrap: {width: 22, height: 24, alignItems: 'center'}, cone: { width: 0, height: 0, borderTopWidth: 24, borderLeftWidth: 11, borderRightWidth: 11, borderTopColor: 'rgba(37,99,235,0.70)', borderLeftColor: 'transparent', borderRightColor: 'transparent', }, }); export default PlayerMapView;