Questions tagged [react-native-firebase]

This tag is for the react-native-firebase npm package.

This tag is for the react-native-firebase npm package. React Native Firebase allows the use of the full firebase suite of modules whilst working with react native, it works by providing a javascript bridge to the native android and iOS firebase SDK's.

When using this tag it would be helpful to specify the following:

1. Application Target Platform(s):

2. Operating System:

3. React Native version:

4. RNFirebase Version:

5. Firebase Module:

1347 questions
0
votes
1 answer

one time notifications using react native firebase

I am using react-native-firebase to handle the device notification in my react native app. I am using subscribeToTopic() and unsubscribeFromTopic() api to get alerts on my device. Problem is I want to give user options to set one-time or all-time…
0
votes
0 answers

Firebase transaction with react-native-firebase does not execute

I'm developing a react-native app with react-native-firebase, and I'm trying to implement a transaction. here's my code: const roomRef = firebase.database().ref('rooms').child(roomKey) return roomRef.transaction(function(room) { …
0
votes
1 answer

Unable to add react native plugin

I am trying to add react-native firebase plugin. https://github.com/invertase/react-native-firebase Unfortunately i am stuck at this issue. Any help will be appreciated check link
power-cut
  • 1,310
  • 1
  • 14
  • 30
0
votes
1 answer

RN Firebase - How to check if the user accepted the permission for notifications on IOS

According to the official react-native-firebase docs you can use the method requestPermissions() for ios to prompt the user about accepting notifications, but how can I check if the user declined it or not since said method returns void?
Gabriel Schneider
  • 605
  • 2
  • 6
  • 12
0
votes
2 answers

Unable to catch error using redux-saga? (while making a firestore call via react-native-firestore)

Would the below code the correct way to "catch" errors in redux-saga using call or fork? That is when I have the "createItem" function is this correct to NOT catch any errors here and assume this will pass back any exceptions to the generator…
Greg
  • 34,042
  • 79
  • 253
  • 454
0
votes
1 answer

Local notification not displaying in React Native Android App

My local notifications are not displaying in the Android emulator. I'm using the react-native-firebase from https://rnfirebase.io/. I'm able to send local notifications through the firebase console and they display properly. But when I use the code …
0
votes
0 answers

general design re reconciling app updates (from user) with change updates (from firebase)?

Any design advice regarding how one handles local updates by a user with updates from Firebase? There are two (2) areas I'm interested in understanding. Perhaps assume the application is a shared todo list or shared chat area perhaps: Q1 - Local…
Greg
  • 34,042
  • 79
  • 253
  • 454
0
votes
2 answers

ReactNative Firebase Firestore Crashes on Android

I'm trying to get react-native-firebase up and querying a firestore database in an android app. But whenever I try to query a collection, the app crashes with a very descriptive: Unfortunately, RNFirebaseStarter has stopped. This is happening…
nicholas
  • 14,184
  • 22
  • 82
  • 138
0
votes
1 answer

Array of references coming null in RNFirebase

From firestore collection of document with field of type array of references is giving array of null when doing get on that collection in react-native-firebase. Where as in adminSDK and firestore npm package, the data is coming perfectly. Can any…
0
votes
2 answers

Could not invoke RNFirebaseFirestore.documentSet

Hi guys I add this error and I don't understand why... I'm using the starter project of react-native-firebase, and I'm trying to use firestore
0
votes
1 answer

Code executes in componentDidMount but not in Other functions

So I've run into an weird issue, maybe I'm doing something wrong here but I haven't had this problem before and my app is full of similar code. Basically I'm trying to do a simple Firestore get() in a function attached to a button onPress. For some…
rt_
  • 1,105
  • 2
  • 15
  • 25
-1
votes
1 answer

update new attribute into exists node firebase(realtime database)

I'm a newbie in firebase realtime database. i have got a data structures as below. How can i update a new property (TimeOut) at the same node without loss current properties? I would appreciate it if someone could help me this issue
-1
votes
1 answer

Firebase are react-native backend

I have really been having a hard time intergrating firebase to my react-native UI. Anyone who knows where(site, video or course) that one can learn how to use firebase as react native's backend? Cheers!
-1
votes
1 answer

Compare values before and after updating redux state

I am listening to a Firebase node.....then when a change occurs in FBS Im comparing the snapshot versus what's currently in Redux. Crazy thing is that Redux state already reflects the updated value in FBS (from snapshot) even before I've…
james murphy
  • 1,505
  • 5
  • 31
  • 57
-1
votes
1 answer

useState is not rendering as expected

I have a state named chats in which i am storing all messages from firebase and i'm trying to render it in app. but it does not render here is my component's state: const [chats, setChats] = useState([]); I am bringing messages in UseEffect hook…
1 2 3
89
90