我已经开始尝试使用,但是我似乎无法在没有缺少文件的情况下运行它:
Android Bundling failed 597ms
While trying to resolve module `firebase` from file `C:\Users\wootk\Documents\GitHub\React-and-rNative\React Native\React Native, Firebase v9, authen
tication and firestore\FirebaseAuthApp\firebase\firebaseConfig.js`, the package `C
正在尝试将RN与Firebase集成。显然,我得到了下一个错误: Cannot find a version of 'com.squareup.okhttp3:okhttp' that satisfies the version constraints:
Dependency path 'getnow:react-native-firebase:unspecified' --> 'com.facebook.react:react-native:0.57.7' --> 'com.squareup.okhttp3:okh
有没有办法使用Firebase Web SDK从currentUser中存储和重新创建数据?我不想存储用户的电子邮件和密码(这将解决这个问题),但我希望他们保持登录状态。
这是为了确保id_token在用户每次启动应用程序时都保持更新。(内置React Native,不过我更喜欢使用Web SDK。)
**更新**
这一切都归结为替换:
import * as firebase from 'firebase/app'
使用
import * as firebase from 'firebase/firebase-react-native'
现在一切都很好,onA
当我在React-Native和Firebase中点击sign Up by email and password时,你知道为什么会出现这个问题吗?
<code>A0</code>
我的App.js文件
<code>A1</code>
我的Register.js文件:
<code>A2</code>
我遵循了React Native Firebase文档中的所有说明。Auth函数登录验证工作。我还从firebase启用了电子邮件和密码服务。
谢谢。
当我试图创建一个新员工时,我收到了一条错误消息(将数据输入到firebase的数据库中,请注意,这与电子邮件/密码登录无关,如“从身份验证”选项卡中那样)。只有在我单击submit按钮(应该将用户输入的数据输入数据库后),问题才会出现。此外,我应该已经连接到防火墙,因为注册和登录的电子邮件/密码正确。
安卓仿真器屏幕上出现的错误:undefined is not a function (evaluating '_app.default.database()')
后面的一行还声明在:D:\Programs\reactnative\manager\src\actions\Emplo
因为ViewPropTypes已经从“react原生”中删除了,并且使用它的包没有更新。此错误出现在生成应用程序之后。
ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
ERROR Invariant Violation: Module AppRegistry is not a registered callabl
我正在尝试将安装到我现有的iOS React本地应用程序中。我的应用程序已经使用了各种Firebase包(app、auth、firestore等)。
我正在按照导游的指示行事。我试过自动安装和手动安装。但是当我运行pod install时,我得到了以下错误:
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In Podfile:
Firebase/MLVisionTextModel was resolved to 5.0.0, which depends on
当我通常通过带有npx react-native run android的终端运行从Android虚拟设备(仿真器)中的可视代码生成的本机react时,我突然面临这个错误
1. info Running jetifier to migrate libraries to AndroidX. You can
disable it using "--no-jetifier" flag. Jetifier found 954 file(s) to
forward-jetify. Using 8 workers... info Starting JS serv
我正在使用@react-native-firebase/messaging。当我尝试在android中运行该项目时,它返回错误 :react-native-firebase_messaging has not defined a default in project.ext.'react-native'.versions.android.compileSdk in its build.gradle file.
我正在使用React Native创建一个应用程序,并尝试为iOS安装可可豆荚,但当我在终端中输入pod install时,我收到以下警告。
然后,当我尝试在iOS模拟器中运行我的应用程序时,它崩溃了,不能运行。
下面是Xcode错误。
我运行的是react native 0.63.2。
这是我的pod文件
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
require_relative '../node_mo
我安装了@react-native-firebase的v6,它按预期工作,但当我尝试运行单元测试时,我得到了以下错误:
Jest encountered an unexpected token
Details:
/node_modules/@react-native-firebase/database/lib/index.js:18
import { isBoolean, isNumber, isString } from '@react-native-firebase/app/lib/common';
^
SyntaxError: Unexpected t
当我试图在iOS中运行自己的时,我得到了这个错误:
[!] CocoaPods could not find compatible versions for pod "Firebase/Auth":
In Podfile:
Firebase/Auth
RNFBAuth (from `../node_modules/@react-native-firebase/auth`) was resolved to 10.5.1, which depends on
Firebase/Auth (~> 7.4.0)
CocoaPods could n
当我试图在我的Mac M1上用android和ios构建我的本机应用程序时,当我在error.....it上构建时,就不会出现这个error.....it:
Package firebase-functions has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/..../node_modules/firebase-functions/pa
I am getting this error when running firebase init functions in terminal 下面是我的firebase.js代码,我用它来调用firebase: import * as firebase from '@firebase/app' //line 1 which seems to cause the error
//imports for webonly
const Firebase = firebase.initializeApp(firebaseConfig);
export default Firebas