UNPKG

react-native-weather-api

Version:

Real-time weather information for any location on Earth, including over 200,000 cities.

14 lines (13 loc) 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLocation = getLocation; var _geolocation = _interopRequireDefault(require("@react-native-community/geolocation")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } async function getLocation() { return new Promise((resolve, reject) => { _geolocation.default.getCurrentPosition(resolve, reject); }); } //# sourceMappingURL=location.js.map