我将我的应用程序升级为react-原生0.61.2,所以我不得不将react-原生--firebase升级到6.0.3,我从添加@react-native-firebase/app和@react-native-firebase/messaging包开始。
import { Platform } from 'react-native'
import { firebase } from '@react-native-firebase/messaging'
// pluck values from your `GoogleService-Info.plist` yo
给定的错误: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.
I have been using /programming react native app since last 2 months.
Always it used to work fine , I could code and run the simulator on my iphone . The environment details are as follows:
EXPO --version 3.1.2 , npm -v 6.9.0, node -v12.4.0
突然,昨天我开始了这个项目,命令‘世博开始’它没有启动,收到一条消息博览是没有安装的。因此,我安装了世博
问题
在遵循教程之后,我的应用程序在成功构建后挂起。我在Xcode中得到的错误是:Thread 1: signal SIGABRT。我从其他问题中了解到,这与连接有关,但我不知道为什么会发生此错误。
这是我第一次使用Xcode,也是第一次使用本机项目。
我所做的
我添加了react-native-firebase和firebase。
Ran react-native link react-native-firebase.
通过将GoogleService-Info.plist拖到Xcode编辑器中,将其添加到项目中。
停止所有Xcode任务并退出Xcode。
做了一次pod
因为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
firebase.database().ref('zones').on('value', (snapper) => {
//For each zone, populate HTML
snapper.forEach((snap) => {
var html = '<div id="child">Blahblah</div>';
//Add the Injected HTML to the parent div called 'new'
我试图在iOS中构建一个使用Firebase的,但我得到了以下错误:
error: property with 'retain (or strong)' attribute must be of object type While building module 'FirebaseStorage'
这是一个错误日志:
In file included from /Users/xxxx/Documents/Grups/grups/node_modules/@react-native-firebase/messaging/ios/RNFBMessaging/RNF
对不起,我没有找到任何解决办法。也许这完全是个错误的方法。
App.js
import React, { Component } from 'react';
import { View } from 'react-native';
import Home from './app/screens/Home';
import Loading from './app/screens/Loading';
import Login from './app/screens/Login';
import Register fr
运行我的应用程序时出现了以下错误:
Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86
is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(
我在运行以前正常运行的项目时遇到了问题。
当我在我的项目中添加反应-原生纸/反应-本机-矢量-图标时,它开始给出一些与材料相关的aapt错误。我收到了以下消息:
所以我把它拿走了。我认为它应该工作的很好,因为在我安装它之前,代码是好的。看看是否所有的东西都被移走了。在那之后,我的固有配置(我猜)发生了一些变化。因此,每一段运行良好的代码都会出现相同的appt错误,或者使用干净的纱线安装( rm -rf node_modules和rm yarn.lock,以及在安装纱线之后)将产生这个新错误(对我来说这没有任何意义):
* What went wrong:
A problem occurred