Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function call1() { | |
try { | |
return await promise1; | |
} | |
catch (err) { | |
console.warn("promise1 – Error: ", err); | |
} | |
} | |
async function call2() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { StyleSheet, View } from "react-native"; | |
import MapView from "react-native-map-clustering"; | |
import { Marker } from "react-native-maps"; | |
const initialRegion = { | |
latitude: 37.72825, | |
longitude: -122.4324, | |
latitudeDelta: 0.25, | |
longitudeDelta: 0.15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function renderRandomMarkers(n) { | |
const { latitude, longitude, latitudeDelta, longitudeDelta } = initialRegion; | |
return new Array(n).fill().map((x, i) => ( | |
<Marker | |
key={i} | |
coordinate={{ | |
latitude: latitude + (Math.random() - 0.5) * latitudeDelta, | |
longitude: longitude + (Math.random() - 0.5) * longitudeDelta | |
}} | |
/> |