腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2702)
视频
沙龙
1
回答
firebase
实时
数据库
更新
函数
内部
无法
查看
参数
React
Native
react-native
、
firebase-realtime-database
、
parameter-passing
因此,我尝试将一个
参数
从onPress
函数
传递到database.ref().update(这里是
参数
),但是
更新
函数
看不到onPress
参数
。这是我的代码。你能帮我找出我做错了什么吗?; console.log(error); } 下面是onPress内联
函数
{(this.state.apply)?
浏览 17
提问于2021-10-28
得票数 0
1
回答
React
-
Native
+
Firebase
:如何处理
实时
更新
javascript
、
react-native
、
google-cloud-firestore
我使用的是
react
native
+
firebase
。每次有新文档时,我都需要
更新
我的文档列表。所以我找到了关于“
实时
更新
”和使用“onSnapshot”的信息: let items = [];
firebase
.firestore().collection("docs").onSnapshot
浏览 12
提问于2020-04-28
得票数 0
3
回答
React
本机-
Firebase
: RTDB仿真程序
javascript
、
firebase
、
firebase-realtime-database
、
react-native-firebase
、
firebase-tools
有人知道如何使用
实时
数据库
仿真器吗?import firestore from '@
react
-
native
-
firebase
.useFunctionsEmulator('http://localhost:50
浏览 5
提问于2020-07-16
得票数 1
回答已采纳
2
回答
有没有办法通过expo
react
原生来使用
firebase
?
firebase
、
react-native
、
expo
我将使用expo
react
native
构建一个离线应用程序,这可能吗? 如果是,谁能告诉我是怎么做的?
浏览 18
提问于2021-09-17
得票数 0
1
回答
排毒测试与调度队列中挂起的项目挂起
ios
、
react-native
、
detox
看起来,对
firebase
.auth().signInWithPhoneNumber(number)的调用在调度队列中分配了一些项,但这些项似乎从未退出队列,因此测试
无法
进行。谢谢 测试跑步者(选择一个)
浏览 17
提问于2022-04-28
得票数 4
回答已采纳
2
回答
如何在单个请求/
函数
中在不同节点上执行两个
firebase
数据库
操作?
javascript
、
firebase
、
react-native
、
firebase-realtime-database
、
expo
我是一名
react
-
native
developer,刚开始使用
firebase
。我正在执行
firebase
实时
数据库
操作,看看下面的代码;}) 现在,我希望在上面的
浏览 10
提问于2021-05-23
得票数 0
回答已采纳
1
回答
const db =
firebase
.database()不是
React
native
函数
react-native
我目前正在学习
react
native
。我使用的是
firebase
实时
数据库
。初始化配置后,我尝试调用.database()。但是我收到一个错误,说
数据库
不是一个
函数
。有人知道怎么解决这个问题吗?从"
firebase
/app“导入
firebase
const firebaseConfig ={ .... }
firebase
.initializeApp(firebaseConfig)
浏览 9
提问于2021-08-03
得票数 0
回答已采纳
3
回答
TypeError:(0,_analytics.analytics)不是一个
函数
)
react-native
在
react
本地应用程序中,我使用的是
firebase
google分析。} from '
react
-navigation';import
React
, { Component } from '
react
'; import {analytics }from '@
react
-
native
-
firebase
浏览 2
提问于2020-11-23
得票数 1
回答已采纳
1
回答
如何使用
Firebase
实时
数据库
上传图像/文件并响应本机?
javascript
、
firebase
、
react-native
、
firebase-realtime-database
、
upload
我正在开发一个,并为此使用
Firebase
实时
数据库
。我只是需要最好的解决方案. 我经历了一些类
浏览 1
提问于2019-05-15
得票数 1
回答已采纳
4
回答
java.lang.NoClassDefFoundError:失败的解决方案:Lcom/google/
firebase
/iid/
firebase
iid;App本机应用程序
android
、
firebase
、
react-native
我一直试图运行我的
react
本机应用程序,但是它在启动时崩溃了,调试器没有返回任何错误,所以我在Android中检查了日志猫,它显示了以下错误:java.lang.NoClassDefFoundError:失败解决方案: Lcom / google /
firebase
/ iid / FirebaseInstanceId; 由:"com.google.
firebase
.iid.FirebaseInstanceId":未找到类java.lang.ClassNotFoundExcep
浏览 15
提问于2021-05-14
得票数 5
1
回答
在
react
native
中呈现/检索
firebase
数据库
中的数据
javascript
、
firebase
、
react-native
、
firebase-realtime-database
我已经使用set
函数
在
数据库
中创建了name和age。我想要渲染和检索在反应本机的
firebase
实时
数据库
中的数据,而不是在组件中的这里的word。我该如何做到这一点?import
React
, {Component} from '
react
'; import {Platform, StyleSheet, Text, View,Image,Button,TouchableOpacity} from '
react
-
浏览 8
提问于2019-02-02
得票数 0
回答已采纳
1
回答
深度链接
参数
不会通过Mozilla Firefox和Opera传递到Android应用程序
android
、
firebase
、
react-native
、
deep-linking
、
firebase-dynamic-links
我正在尝试打开在
Firebase
深度链接服务上注册的创建深度链接的应用程序。除了原始链接,我正在尝试传递一些额外的
参数
给应用程序,以便处理此链接。page=place&id=1001126 链接https://my-custom.page.link/page是在
Firebase
服务上注册的,而?page=place&id=1001126是自定义
参数
。 由于我们正在构建一个
react
原生应用程序,因此在IOS应用程序的所有浏览器上都能正常工作。在我记录了从<em
浏览 25
提问于2019-06-21
得票数 2
回答已采纳
1
回答
Firebase
.Firestore不是一个
函数
reactjs
、
firebase
、
react-native
、
firebase-realtime-database
、
google-cloud-firestore
我正在使用一个
React
Native
应用程序,我们正在从
Firebase
实时
数据库
更改为
Firebase
Firestore,但当我去运行世博会上的应用程序时,我收到了这个错误:*类型错误:类型错误:
firebase
.firestore不是一个
函数
。(在‘
firebase
’‘firestore()’中,'
firebase
.firestore‘未定义)import
React</
浏览 2
提问于2020-02-22
得票数 0
3
回答
在
React
Native
应用程序之间共享
数据库
reactjs
、
react-native
我正在构建两个
react
native
应用程序,我需要保留一些相同的东西,如用户名(登录)和一些其他信息。我尝试使用AsyncStorage (
React
native
Storage)进行存储,一切都正常,但现在我需要为这两个应用程序使用一个通用的
数据库
,因为用户在第一个应用程序中登录成功,然后另一个应用程序也应该被记录in.As异步存储在这种情况下不能使用
react
Native
中的任何其他选项。
浏览 2
提问于2018-09-18
得票数 4
1
回答
Firebase
(带有
react
本机) HTTPS
函数
不接收
参数
firebase
、
react-native
、
google-cloud-functions
、
react-native-ios
我在
Firebase
中使用原生的
React
。我部署了一个
函数
(没有查询
参数
),并且能够从我的iPhone调用它而不会出现问题。当我添加
参数
时,我只能在我的浏览器上运行它,但在我的手机上
参数
是未定义的。
Firebase
函数
const searchQueryconst testFunction
浏览 3
提问于2019-10-28
得票数 4
2
回答
如何在使用防火墙的反应本机中进行单元测试?
javascript
、
firebase
、
unit-testing
、
react-native
、
jestjs
在
react
本机中,有一个组件使用
firebase
数据库
从给定的ref返回数据:// when the data of the current user is available });});我现在正在尝试进行使用以下组件的单元测试:import '
react
-
native
' import
Rea
浏览 2
提问于2018-04-06
得票数 7
1
回答
无法
使用匿名身份验证获取
Firebase
实时
数据库
javascript
、
firebase-realtime-database
、
firebase-authentication
我正在构建一个
React
web应用程序,通过
Firebase
实时
数据库
来
查看
JSON
数据库
。无需身份验证就能很好地获取数据!.catch(err => { setError(err.message); })
实时
数据库
的规则如下我已经通过' sign -in method‘启用了它,并在我的javascript中添加了一个
浏览 25
提问于2021-08-15
得票数 0
回答已采纳
2
回答
React
Native
-将状态传递到另一个屏幕
javascript
、
firebase
、
react-native
当我console.log它时,它是非常好的,但当我
更新
状态时,它不会动态
更新
。navigation, route}) => {} console.log(userData) return() 所以当我
更新
我的状态时,它会在我的主屏幕上
更新
,但不会在我的模块屏幕上
更新
。
浏览 11
提问于2021-06-26
得票数 0
1
回答
react
原生的、
实时
的
数据库
.ref不能工作
firebase
、
react-native
、
firebase-realtime-database
、
react-native-firebase
我
无法
读或写到我的
数据库
,所以我试图找出问题。由此,我假设我的
firebase
设置是正确的,那么ref
函数
就会出现问题。 你们能帮忙吗?我使用"@
react
-
native
-
firebase
/app": "^12.0.0", "@
react
-
native
-
firebase
/database": "^12.0.0", &q
浏览 4
提问于2021-06-02
得票数 1
1
回答
未插入
Firebase
数据库
的数据
javascript
、
firebase
、
react-native
、
firebase-realtime-database
我正在尝试插入一个记录,从我的反应本机应用程序到
Firebase
。我的代码如下:import { StyleSheet, Text, View } from '
react
-
native
'; var
React
= require('
react</
浏览 1
提问于2017-07-11
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
我们弃用 Firebase了
App后端服务,你是选择AWS还是Firebase?
使用 React Native 创建人脸识别 App
2020 年你应该知道的 React 库
干货 | 减少50%空间,携程机票React Native Bundle 分析与优化
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券