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
6
votes
2 answers

React Native Flatlist search returning no values from firebase users collection

so I recently tried to make a FlatList search for users in firebase, but I have been running into a bunch of errors, although there seems to be no bugs in the code. At the moment, the list searches and does not return anything, although there is…
6
votes
2 answers

Error: Text strings must be rendered within a component in React Native when string is not empty

so I have recently ran into the error show in the text tag, although I can not find why it is showing. I have logged that the value is not empty and that the value exists before I press the button. Here is my jsx code:
6
votes
1 answer

@react-native-firebase/messaging : TypeError: (0 , _messaging.default)(...).registerForRemoteNotifications is not a function

I am using @react-native-firebase/app": "^8.2.0", @react-native-firebase/messaging and react-native v0.61.0. also using @react-native-community/push-notification-ios": "^1.4.0" and "react-native-push-notification": "^4.0.0" I have recently…
6
votes
0 answers

React Native Upload on firebase Storage even in background

I'm actually working on a react native application, and I need to upload picture/video even if user close the app during the upload, for the moment when someone put the app in background, the upload is paused/stopped So I need to fix it with…
6
votes
2 answers

How can I cache the getDownloadUrl() calls on the client with Firebase Firestore?

I store some Firebase Storage paths for images/videos in the backend DB and the mobile client uses these to fetch the download URLs as/when needed for my views: import {firebase} from '@react-native-firebase/storage'; // e.g.…
6
votes
1 answer

react-native-firebase Crashlytics not reporting crashes

I've been using Fabric Crashlytics in my app for some time, using react-native-fabric. Now I would like to use the react-native-firebase implementation which does JS stack mapping. Last year I migrated my apps (Release and Staging builds, android…
chetstone
  • 650
  • 1
  • 9
  • 19
6
votes
0 answers

How to draw bounding boxes after processing image with OCR using react-native-firebase-mlkit vision

I have successfully detected text elements on an image taken with react-native-camera. The vision().textRecognizerProcessImage(photoUri) is successfully returning the detected text. // take the photo from the camera takePicture = async () => { …
ceessay
  • 322
  • 5
  • 16
6
votes
1 answer

How do I persist user authentication using the Firebase refresh token?

I am building a React Native app which uses Firebase phone authentication for user login. Authentication works fine but the token expires after an hour. I have read that I need to use the refresh token to refresh the idToken, but nowhere on the…
6
votes
1 answer

react-native-firebase - Open app from Headless JS Service / Open app from received notification in background mode

I read How to handle notification when app in background in Firebase Open app on firebase notification received (FCM) But these aren't the solution for react-native-firebase. I'm using react-native-firebase to handle notifications. In foreground,…
tuledev
  • 10,177
  • 4
  • 29
  • 49
6
votes
3 answers

Push notification not showing in Android foreground

I've used react-native-fcm for remote notification in android and iPhone. react-native-fcm In Android foreground I'm not be able to getting remote notification in notification bar. In background mode I'm able to getting notification successfully but…
6
votes
2 answers

React Native error logging with firebase Crashlytics - How to get javascript stack trace

I have a React native application with configured using react native firebase lib and added the module of Crashlytics. Everything works okay but when i try to log an error using recordError() method or when i just use crash() its just logs errors…
6
votes
1 answer

Library not found for -lRNFirebase React Native

Xcode is giving me an Error: I am using React Native Firebase, I have followed the instructions on there site, and I appear to have everything there, but Im not that familiar with Xcode, so I can exactly see the problem. I have posted more…
Andrew Irwin
  • 691
  • 12
  • 40
6
votes
1 answer

How to pass extra auth parameters for firestore rules authentication (React-Native)?

I want to implement role based restrictions in my application. I have the user role information in one collection documents. Now I want to write rules to restrict different Write, Update operation on other collections of the database. Since I am…
6
votes
1 answer

React native firebase notification heads up are not showing in some devices

hi i am using react native firebase for notifications i succeed integrating it and notifications are coming for both platform but for android heads up are not coming when app is in either foreground or background. I read all of the issues regarding…
6
votes
4 answers

react-native-firebase: How to delete a token at logout?

I'd like to stop receiving notifications to the app once the user logs out. I guess I'd have to remove the device token generated by react-native-firebase but I can't find any functionality to do this. Does anyone know how to do this?
Edoardo Foco
  • 61
  • 1
  • 2