Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)}
{
this.map = ref;
}}
style={{
...styles.map,
bottom: styles.map.bottom - this.state.bottomSafeAreaInset
}}
provider={MapView.PROVIDER_GOOGLE}
mapPadding={Platform.OS === 'android' ? { top: 40, bottom: 0, left: 0, right: 0 } : undefined}
mapType="none"
minZoomLevel={2}
maxZoomLevel={18}
showsCompass
rotateEnabled
moveOnMarkerPress={false}
onMapReady={this.onMapReady}
onRegionChangeComplete={this.onRegionChangeComplete}
>
{contextualLocalLayerElement}
{contextualRemoteLayerElement}
{clustersElement}
{compassLineElement}
render() {
return (
render() {
const { pickupLocation, dropoffLocation, taxiType } = this.props
const bookingDisabled =
pickupLocation == null ||
dropoffLocation == null ||
isLocationEquals(pickupLocation, dropoffLocation)
return (
<content>
{this.renderPickupMarker()}
{this.renderDropoffMarker()}
{this.renderDriverMarkers()}
</content>
)
}
if (isConnected && !criticalSyncError) animationSource = syncFinished ? loadedAnimation : rangerAnimation;
return (
);
}
}
const { contextualLayer } = this.props;
const { coordinates } = shape;
const markers = parseCoordinates(coordinates);
const ctxLayerKey =
Platform.OS === 'ios' && contextualLayer
? `contextualLayerElement-${contextualLayer.name}`
: 'contextualLayerElement';
return (