Answer the question
In order to leave comments, you need to log in
React Native Firestore display user posts, how?
Hello everyone, tell me guys, there is a chat between users - user = user.
How to display messages when entering the room, for example, there is Sasha and Misha, Sasha enters, his and Misha's messages are displayed, when Misha enters, Misha's and Sasha's messages are displayed, tell me how to do this.
Here is what I tried
firestore()
.collection('messages')
.where('user_id', '==', parseInt(data.user_id))
.where('to_uid', '==', parseInt(data.to_uid))
.get()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question