Closed mdanics closed 3 years ago
React: 17.02
Firebase: 8.6.8
ReactFire: 3.0-canary
https://firebase.google.com/docs/reference/js/firebase.firestore.GeoPoint there is support for a GeoPoint in the actual sdk. I would expect to be able to
const firestore = useFirestore()
and then be able to get to the geopoint constructor by new firestore.GeoPoint() but it doesn't exist.
new firestore.GeoPoint()
It's possible by importing firebase like so:
import firebase from 'firebase/app'; const geoPoint = new firebase.firestore.GeoPoint(lat,lng)
React: 17.02
Firebase: 8.6.8
ReactFire: 3.0-canary
Expected behavior
https://firebase.google.com/docs/reference/js/firebase.firestore.GeoPoint there is support for a GeoPoint in the actual sdk. I would expect to be able to
and then be able to get to the geopoint constructor by
new firestore.GeoPoint()
but it doesn't exist.