Skip to content

Instantly share code, notes, and snippets.

View edhimurwanto's full-sized avatar
🇮🇩

Edi Murwanto edhimurwanto

🇮🇩
  • Jakarta
View GitHub Profile
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import SphericalMercator from "@mapbox/sphericalmercator";
import { MapView, Constants } from "expo";
const merc = new SphericalMercator();
const getZoomLevelFromRegion = (region, viewport) => {
const { longitudeDelta } = region;
const { width } = viewport;