react-native-firebase

how to render data fecthed from firebase database in react-native functional components

戏子无情 提交于 2021-02-11 12:22:46
问题 I'm getting data from firebase databse in console that look like this. [{ "isDonor": true, "name": "Nadi", "photo": "https://gre", "uid": "2ZE" }, { "email": "mmaz", "isDonor": true, "name": "Mz", "photo": "https://gra", "uid": "Cb" }] I want to create cards of each objects but how to accomplish that as data is fetched after some time? I want to render it like this Ihave checked other answres but they are mostly from class component. I have tried using useEffect hook but couldn't implement it

What does FirebaseAppDelegateProxyEnabled do?

自古美人都是妖i 提交于 2021-02-11 05:09:15
问题 My issue (background notifications): I am using React Native Firebase. Everything is fine until recently I updated to version 6.7.1 of the library. After the update background notification(while app is closed) stopped working. Foreground is working. I found a suggestion here, to turn FirebaseAppDelegateProxyEnabled to YES in info.plist. And it did work! I can receive notifications fine now. But what is swizzling? I don't really understand what is this method of swizzling do, and what is the

What does FirebaseAppDelegateProxyEnabled do?

♀尐吖头ヾ 提交于 2021-02-11 05:08:36
问题 My issue (background notifications): I am using React Native Firebase. Everything is fine until recently I updated to version 6.7.1 of the library. After the update background notification(while app is closed) stopped working. Foreground is working. I found a suggestion here, to turn FirebaseAppDelegateProxyEnabled to YES in info.plist. And it did work! I can receive notifications fine now. But what is swizzling? I don't really understand what is this method of swizzling do, and what is the

RNFirebase core module was not found natively on iOS - Not fixed

☆樱花仙子☆ 提交于 2021-02-10 17:31:28
问题 Soo I am continuously getting this error after doing all available solutions here such as this one: Error: RNFirebase core module was not found natively on iOS. I already followed that step by step. I updated my pod using pod update, installed my pods using pod install, all was successful but after running the app again with react-native run-ios, I still get that error after building. Do you guys have any idea as to why it doesn't get fixed? Edit This is the exact error I get from terminal:

react native - not receiving notification when app is killed/not started

帅比萌擦擦* 提交于 2021-02-07 08:17:30
问题 I am using react-native-firebase@4.2.0 for push notifications. When app is open on screen, I receive the notification via onNotification and an alert as intended by my code. PROBLEM 1 When app is in background (not killed), I receive the notification in status bar but on tapping it, it just gets dismissed and app is not opened. I also get this error in android logcat: 06-21 17:26:03.892 5926 8672 D RNFMessagingService: onMessageReceived event received 06-21 17:26:03.913 5926 8600 E

react native - not receiving notification when app is killed/not started

被刻印的时光 ゝ 提交于 2021-02-07 08:14:09
问题 I am using react-native-firebase@4.2.0 for push notifications. When app is open on screen, I receive the notification via onNotification and an alert as intended by my code. PROBLEM 1 When app is in background (not killed), I receive the notification in status bar but on tapping it, it just gets dismissed and app is not opened. I also get this error in android logcat: 06-21 17:26:03.892 5926 8672 D RNFMessagingService: onMessageReceived event received 06-21 17:26:03.913 5926 8600 E

Unable to fetch data from Firebase Firestore in react native

点点圈 提交于 2021-02-07 06:59:10
问题 I am trying to GET data from Firestore but I cannot see data coming. I am building a react-native app. I am using react-native-firebase. I also tried Transactions method from react-native-firebase documentation. But nothing is working. Here' my code: firebase.firestore().collection('users').doc(uid) .get() .then((doc)=>{ console.log(doc) console.log(doc.data().shoppinglist) }) .catch(e => console.log(e)); Console logging .get() gives me a Promise. I am getting the Promise like this: Promise {

RNFirebase core module was not found natively on iOS

有些话、适合烂在心里 提交于 2021-01-29 10:46:43
问题 AppDelegate.m #import "Firebase.h" #import "AppDelegate.h" #import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [FIRApp configure]; NSURL *jsCodeLocation; jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL

Getting : TypeError: undefined is not a function (evaluating 'filePath.replace('file://', '')') while uploading a blob to firebase storage

筅森魡賤 提交于 2021-01-29 08:26:34
问题 I am developing an small React Native POC with firebase storage in which a user selects image and uploads it to firebase storage under /uid/ directory. I am using react-native-firebase for using firebase in the application. I have the uri of the image with which i am creating its blob using RNFetchBlob and then trying to upload the blob to firebase. Here is the code for handling the blob making and uploading. handleUploadTask = (mime = 'application/octet-stream') => { const {imageSource} =

How to setup sendSignInLinkToEmail() from Firebase in react-native?

最后都变了- 提交于 2021-01-22 05:08:12
问题 Working on a react-native project using @react-native-firebase/app v6 we recently integrated signing in with a "magic link" using auth.sendSignInLinkToEmail We couldn't find a good example on how to setup everything in react-native and had different problems like - auth/invalid-dynamic-link-domain - The provided dynamic link domain is not configured or authorized for the current project. - auth/unauthorized-continue-uri - Domain not whitelisted by project Searching for information and