在学习博览的过程中,我试着构建一个小应用程序,我用谷歌作为工具,我遵循了世博会文档中的所有说明,但我还是不明白为什么在我点击谷歌登录并选择一个gmail帐户后,这个应用会重定向到google.com。
import React, { createContext,useContext } from "react";
import * as Google from 'expo-google-app-auth';
import { GoogleAuthProvider,onAuthStateChanged,signInWithCredential,signOut }
我正在构建一个应用程序在博览(因此在反应本地)使用Firebase,我正在尝试通过Firebase实现Facebook登录。我使用了下面链接的代码,并用正确的凭据替换了/* Config */和<YOUR FBID> (我已经四次检查了它们)。
我添加了 (来自世博文档)和从firebase设置提供的重定向链接到Facebook客户机OAuth设置:OAuth
这个按钮正确地将我重定向到Facebook登录,但是我得到了错误"URL Blocked: This redirect failed because the redirect URI is not whitelist
我对privateRoute有问题,它应该在签名之后重定向到主页,但是它一直重定向到'/ signin‘页面。如果我删除了PrivateRoute,我不确定我是反应新手,这是我第一次使用firebase来解决这个问题,我很抱歉,我的代码很混乱
import React, {useEffect, useState} from 'react'
import firebase from 'firebase'
import StyledFirebaseAuth from 'react-firebaseui/FirebaseAuth'
im
我在获取数据信息时遇到了问题。我正试图在我的社交应用程序上创建一个聊天部分,但由于某种原因,我找不出是什么导致了这个问题。我的密钥在一个单独的js文件中,当涉及到用户身份验证时,它们工作得很好。当我运行expo时,我得到了这样的信息:
这是我的Fire.js
import FirebaseKeys from "./config";
import firebase from "firebase";
require("firebase/firestore");
class Fire {
constructor() {
我在React Native Expo应用程序上收到以下错误: Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/react-native/issue
在一开始安装,应用程序运行没有任何问题。
检查启动屏幕上的登录状态。
用户不登录,导航到登录屏幕。
但是当应用程序最小化,然后重新打开时,unsubscribe() is not a function错误会显示并停留在启动屏幕上。这只发生在最小化>还原,从新安装和第一次运行。
这意味着,如果我从后台杀死应用程序并打开,然后最小化,然后恢复,它的工作非常好。
下面是我从firebase文档中使用的checkLoginState函数。我不确定这是否与react-native、firebase、react-native-firebase或react-navigation有关。知
我正在尝试将我的react原生应用程序链接到firebase,并在auth模块上工作。 我按照https://rnfirebase.io/中的安装步骤进行了操作 当我运行npx react-native run-android时,它可以工作 但是,当我使用expo start在预生产应用程序上工作时,我总是收到错误you attempted to use a firebase module that is not installed firebase.app() ?