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:

1074 questions
0
votes
2 answers

React Native/Firebase: Issue with FlatList Re-Rendering & Duplicate Keys

I am using React Native and Firebase Realtime Database. I am experiencing two problems with the FlatList component: I am getting a lot of "duplicate key" errors whenever the list re-renders. I am not sure why I am getting this problem because I am…
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
  • 596
  • 1
  • 10
  • 21
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
  • 535
  • 1
  • 5
  • 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
  • 31,898
  • 75
  • 232
  • 424
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
  • 31,898
  • 75
  • 232
  • 424
0
votes
1 answer

App crashes in ios simulator when trying to use Phone auth in react-native firebase

I've followed the docs and did the necessary settings but the app crashes while launch. I'm not able to figure out the problem as to why this is occurring. any one who worked with rnfirebase? facing this issue? import React, { Component } from…
rajeshzmoke
  • 120
  • 1
  • 6
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
  • 12,790
  • 19
  • 75
  • 126
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…
-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
  • 491
  • 1
  • 10
  • 36
-1
votes
1 answer

Admob ads not showing on android real device (react-native-firebase)

I am using react-native-firebase admob feature on my app. Set up interstital and banner ads both, not published the new update with ads on appstore or playstore yet, just testing now. Followed exact installation steps here On iOS, both test ads and…
ugrdursun
  • 203
  • 2
  • 15
1 2 3
71
72