UNPKG

react-native-firebase-compiled

Version:

A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Sto

41 lines (31 loc) 871 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } /** * * GeoPoint representation wrapper */ /** * @class GeoPoint */ class GeoPoint { constructor(latitude, longitude) { _defineProperty(this, "_latitude", void 0); _defineProperty(this, "_longitude", void 0); // TODO: Validation // validate.isNumber('latitude', latitude); // validate.isNumber('longitude', longitude); this._latitude = latitude; this._longitude = longitude; } get latitude() { return this._latitude; } get longitude() { return this._longitude; } } exports.default = GeoPoint;