不久前,我已经开始使用react本地的世博会,所以我有点迷失了。
当尝试使用以下命令构建应用程序时:
eas build --profile development --platform android
当到达安装依赖项部分时,生成失败。
Running "npm install" in the root dir of your repository 2[stderr] npm ERR! code ERESOLVE3[stderr] npm ERR!4[stderr] ERESOLVE could not resolve5[stderr] npm ERR! 6[stderr]
我正在使用多个防火墙服务在我的反应本机项目。现在我试着加入破折主义
yarn add @react-native-firebase/crashlytics
但我犯了个错误
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
In snapshot (Podfile.lock):
Firebase/CoreOnly (= 8.12.1)
In Podfile:
RNFBApp (from `../node_modules/@react-native-f
我从由转化酶提供的初学者工具包中安装了RNF。我正在使用RNF应用,数据库,分析,auth。一切都很顺利,直到我需要这个模块。它在应用程序启动时抛出一个错误(在Android上,还没有尝试过iOS):
...\node_modules\react-native\Libraries\Core\ExceptionsManager.js:86
You've attempted to require '@react-native-firebase/auth' version '6.0.3', however,
the '@react-nati
我尝试使用jest运行测试,但它因错误而中断: Invariant Violation: Native module cannot be null.
at invariant (node_modules/invariant/invariant.js:40:15)
at RNFBNativeEventEmitter.NativeEventEmitter (node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js:36:7)
at new RNFBNativeEventEmi
因此,我需要添加防火墙云功能,在开发反应-本机项目。所以在它正常工作之前,但现在它给了我错误。我至今所做的一切,
yarn add @react-native-firebase/app yarn add @react-native-firebase/functions
然后我尝试cd ios/ && pod install,但是它给了我下面的错误
etching podspec for glog from ../node_modules/react-native/third-party-podspecs/glog.podspec [!] CocoaPods could not
我正在尝试成功运行react本机安装附带的boiler -test.js测试。我已经看到这个测试在其他项目中“开箱即用”,然而,由于我们与Firebase SDK的集成,我的测试失败了。我们的长期目标是构建一个测试套件,模拟对我们的firebase SDK的调用(我想探索以下解决方案:https://medium.com/stories-from-upstatement/jest-mocks-roasting-on-an-open-firestore-36fa55b76953、How do you mock Firebase Firestore methods using Jest? ),但
我安装了@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
used library versions
==================
"@react-native-firebase/app":"8.4.6","@react-native-firebase/messaging":"8.0.0","react":"16.8.3","react-native":"0.63.3",
当我尝试执行以下代码时,我的react-native应用程序出现错误
react-native run-android --variant=release
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :react-native-firebase
react-native-firebase: using React Native prebuilt binary from /Users/sanglee/Documents/react-native-firebase-start
我遵循了iOS来自的说明,但是编译显示了这些错误。我猜这是某种版本不兼容,但我相信我是最新版本的react-native-firebase。当我构建应用程序时,会出现以下错误:
❌ /Users/matt/Desktop/myapp/node_modules/react-native-firebase/ios/RNFirebase/messaging/RNFirebaseMessaging.m:91:51: expected a type
- (void)applicationReceivedRemoteMessage:(nonnull FIRMessagingRemoteMessage
当我试图在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
react-native-firebase/app << set complete and call OK
import Firebase from "@react-native-firebase/app"
import Database from "@react-native/firebase/database <<<error start,,,,
Database().ref("users/"+ "userId").set({
hopoint:5,
userPo
正在尝试将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
我正在开发React native App,它工作得很好。但是当我导入firebase crashlytics时,它在启动屏幕上卡住了,如果我再次删除它,应用程序工作正常吗?
由于我是新的反应,我不能得到这个问题的根本原因?
我正在尝试在index.js中导入crashlytics,如下所示
//import '@react-native-firebase/crashlytics'
or
//import {crashlytics} from '@react-native-firebase/crashlytics';
or
我有一个特殊的问题,我已经为这个错误找到了许多解决方案,但没有一个有效。
[!] CocoaPods could not find compatible versions for pod "RNFBApp":
In Podfile:
RNFBApp (from `../node_modules/@react-native-firebase/app`)
Specs satisfying the `RNFBApp (from `../node_modules/@react-native-firebase/app`)` dependency were found, but they