react-native-firebase

Error: Bundling failed - While trying to resolve module 'react-native-firebase'

眉间皱痕 提交于 2019-12-13 14:50:05
问题 I'm trying to use Firebase Authentication and am getting the below error when running react-native run-android . The error is happening in the node terminal that pops up when \react-native\scripts\..\local-cli\cli.js script runs. I'm following the docs for the initial setup, android setup, and auth setup. Where is the dist/ folder supposed to come from? Thanks in advance! error: bundling failed: Error: While trying to resolve module react-native-firebase from file D:\Temp\projects\app\src

react-redux-firebase not populating profile in firebase reducer

感情迁移 提交于 2019-12-13 08:44:40
问题 react-redux-firebase isn't populating user profle in firebase reducer even after a successful signIn width auth.signInWithEmailAndPassword method and data exist users/${uid}.As I'm storing data in firestore so I've configured react-redux-firebase as: const reduxFirebaseConfig = { userProfile: 'users', attachAuthIsReady: true, useFirestoreForProfile: true, updateProfileOnLogin: false }; Reducer in redux-dev-tool: firebase > profile {isLoaded: false, isEmpty: true}. Note: Working with react

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

无人久伴 提交于 2019-12-13 02:57:45
问题 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 'react'; import { View, Button, Text, TextInput, Image } from 'react-native'; import firebase from 'react-native-firebase'; const successImageUri = 'https://cdn.pixabay.com/photo/2015/06/09/16/12/icon-803718_1280.png'; export default class App extends

Error message - RNFirebase core module was not found natively on iOS

让人想犯罪 __ 提交于 2019-12-13 02:47:43
问题 React Native Firebase won’t install on iOS React Native project. It works fine on Android. I followed this instruction. https://rnfirebase.io/docs/v5.x.x/installation/initial-setup I set up Firebase, added the downloaded plist file via XCode, installed and set up Cocoapod. The moment I add the following line to my App.js, the simulator returns an error message. import firebase from 'react-native-firebase'; The error message: “RNFirebase core module was not found natively on iOS” I’ve tried a

Image not showing in push notification when app is in background or killed?

空扰寡人 提交于 2019-12-13 01:28:37
问题 I am developing an app in React native, want to show Image in push notification when the app is in background or killed. When the app is in foreground it is doing fine but in background only title and message is showing but not the image. For push notification I am using react-native-firebase to achieve this. Code in bgMessaging.js import firebase from 'react-native-firebase'; import type { RemoteMessage } from 'react-native-firebase'; export default async message => { return Promise.resolve(

Push notification not working when application is closed

走远了吗. 提交于 2019-12-12 20:17:23
问题 I am working in react native project where I required to have push notification from server to be implemented in my app. I tried to use firebase as the notification provider. For that, I used react-native-firebase package. I tried this example link Its working fine when the app is running. But notification failed to come when the app is closed. So how can I achieve this My target Android version is KitKat 回答1: Recently i face this problem i solve this issue by autostart Ref : https://docs

Push notification is not popping up react-native-firebase with starter kit

与世无争的帅哥 提交于 2019-12-12 19:17:13
问题 I have cloned React Native Firebase Starter and did initial setup then renamed project according to the docs then added google.services.json file (what was generated with app name com.xxxxx.xxxx ). Then i tried running in android device. Screen i am getting that messaging service is enabled but when i do create new message from cloud messaging tab of firebase. I am not getting any notification in device. I am using real device and checked with multiple devices. also notification settings are

FB login - Firebase.Auth() Error: The supplied auth credential is malformed or has expired

社会主义新天地 提交于 2019-12-12 12:00:57
问题 I'm using react-native-fbsdk: 0.8.0, react-native-firebase: ^5.2.2, react-native: ^0.57.4 and Facebook Test User account. This happened so suddenly. Once I sign out from firebase and try to log in again with Facebook. Error: The supplied auth credential is malformed or has expired. [ Remote site 5XX from facebook.com for USER_INFO ]. I had tried AccessToken.refreshCurrentAccessTokenAsync(). But give me Error: Failed to refresh access token. The Facebook token will expire in 60 days. Checked

How to combine Firestore orderBy desc with startAfter cursor

此生再无相见时 提交于 2019-12-12 10:39:43
问题 i am trying to query a list in firestore that should be sorted by a descending date property and make use of a startAfter cursor to paginate the results. As you can see in the snippets below, this is failing once i combine orderBy('date', 'desc') with startAfter(lastDoc.date). I am wondering what i am doing wrong. Any ideas? // this actually works // but it is sorted by ascending dates db.collection('tanks') .doc(tankId) .collection('documentations') .orderBy('date') .startAfter(lastDoc.date)

How to broadcast a live video to YouTube channel using ReactNative in Ios/Android?

自作多情 提交于 2019-12-11 16:08:51
问题 Is it possible to broadcast a live video to YouTube channel using ReactNative in Ios/Android? 回答1: Try using this library https://www.npmjs.com/package/react-native-nodemediaclient https://github.com/NodeMedia/react-native-nodemediaclient import { NodeCameraView } from 'react-native-nodemediaclient'; ...... <NodeCameraView style={{ height: 400 }} ref={(vb) => { this.vb = vb }} outputUrl = {"rtmp://192.168.0.10/live/stream"}// out put to youTube camera={{ cameraId: 1, cameraFrontMirror: true }