我正在使用多个防火墙服务在我的反应本机项目。现在我试着加入破折主义
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
我正在学习测试驱动开发,并试图通过遵循https://react-native-async-storage.github.io/async-storage/docs/advanced/jest/的指导来实现异步存储测试。我已经遵循了安装,目前正在尝试在我的第一个测试中模拟异步存储。 我创建了一个简单的测试。 import React from 'react';
import {render, fireEvent} from 'react-native-testing-library';
import UserWelcome from '../UserW
在构建发布包之前,我将按照本机0.67.4 来生成密钥和签名配置。该应用程序在安卓仿真器(Android 2120.1.1 Patch2)中运行良好。但是,在构建发布包时,./gradlew assembleRelease和./gradlew bundleRelease都有如下相同的错误:
任务:app:signReleaseBundle失败
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
FAILURE: Build failed with an exception.
* What went
我在android上发现了这个错误
Error:(15, 5) error: method does not override or implement a method from a supertype;
在档案
.../node_modules/react-native-package-manager/android/src/main/java/com/rnlib/packagemanager/RNPackageManager.java
IOS侧运行得很好。我安装了,之后它似乎开始失败,但我不确定。我用Yarn和rnpm连接包。React-Native link
现在该文件如下所示:
p
我是新的反应本土化,我一直在创建一个应用程序与Firebase为后端。我了解到,如果我只是在一个名为firebaseConfig.js的文件中复制并粘贴控制台页面中的firebase配置,那就太危险了。
我创建了一个.env文件并编写了一些局部变量(如果我认为它们是正确的),用变量替换firebase配置信息(如apiKey )。
我不知道哪里出了问题。
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { ge
我正在添加一个音频模块在我目前的反应-本机项目。我尝试过安装几个模块(,)。在两个模块中获得相同的错误输出,这总是指向'react-native/Libraries/Image/resolveAssetsource'中没有找到的模块。
ERROR in ./node_modules/react-native-track-player/lib/index.js
Module not found: Error: Can't resolve 'react-native/Libraries/Image/resolveAssetsource' in 'D:
当我将特定的npm包安装到我的run本机项目并尝试运行它时,我会得到以下错误:
This error is caused by a @providesModule declaration with the same name accross two different files.
Error: @providesModule naming collision:
Duplicate module name: promiseRejectionIsError
Paths:
projectname/node_modules/react-native-stripe-api/node_modules/
为了最大限度地重用代码,我们正在构建一组组件,我们希望在多个移动应用程序中使用这些组件。到目前为止,我已经能够将git存储库作为我的package.json中的依赖项来完成。
我在主/核心组件模块中使用多个本机模块作为依赖项,如下所示:
include ':react-native-navigation'
project(':react-native-navigation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation/and
从另一个开发人员手中接管RN项目,并试图为Android构建一个版本,然而Gradle一直给我这个问题:
ERROR: Project with path ':unimodules-core' could not be found in project ':@unimodules_react-native-adapter'.
关于这一点,我能找到的唯一解决方案是添加settings.gradle文件:
include ':@unimodules_react-native-adapter'
project(':@unimodules_rea
我是第一次接触React-Native并构建我的第一个应用程序。我正在尝试使用这个来建立一个简单的步数应用程序。我安装了npm和react-natvie链接。我正在尝试以与页面上提到的库所有者相同的方式进行复制。
但我仍然收到以下错误:
TypeError: undefined is not an object (evaluating
'BMDPedometer.isStepCountingAvailable')
: This error is located at:
in StepsCounter (at App.js:26)
in App (at renderApplic
目标:使用react-native-agora v3.0.1-rc.4成功构建和绑定本地项目,同时保留我编辑的npm包。
阿格拉支持人员告诉我尝试更新这个版本。在经历了一系列的错误和管理之后,我又谈到了另一个问题。该项目现在正在构建,但不会成功地绑定。包进程失败(在iOS上,还没有尝试android ):
error: bundling failed: Error: Unable to resolve module `./AgoraView.native` from `node_modules/react-native-agora/lib/index.js`:
None of these