jlooper / giftler

🎁 Gift-giving made easy, with Firebase, NativeScript, and Angular 2
38 stars 53 forks source link

your exemplo with Firestore on nativescript 8 and @nativescript/firebase-core #3

Open carlosdelfino opened 1 year ago

carlosdelfino commented 1 year ago

Hi Jen Looper.

Thanks for your tutorial, I'm learning Nativescript, actually relearning, I already made a small app using Firebase and Nativescript 6, but I didn't get to read data from Database or Firestore, and I'm now with a new mission where I should use Firestore, I thought your tutorial would solve it my doubts, but you are using Firebase Database, and I'm stuck on exactly how to get data from Firestore to make a list (array) and keep it always updated in real time.

This app that I'm developing monitors whether a document is assigned to a user or not, the logic is already planned, but I don't know how to develop the method that returns the list as an Observable integrated into Firestore, could you help me?

I tried to use the addValueEventListener function but it doesn't exist for Firestore, besides the Observable.share() function is not being found in the RxJS I'm using.

Here's my environment:

"Nativescript": 8 "RxJS": 7.5.0 "@Nativescript/firebase-core": 2.3.4 "@Nativescript/firebase-firestore": 2.3.4

Grateful for the attention.