小编Rad*_*yar的帖子

由于节流,无法成功完成 react-native firebase fetch() 操作

import firebase from "react-native-firebase";
remoteKey = "testJSON"
 firebase
            .config()
            .fetch(0)
            .then(() => {
                return firebase.config().activateFetched();
            })
            .then(activated => {
                if (!activated) console.log("Fetched data not activated");
                return firebase.config().getKeysByPrefix(remoteKey);
            });
Run Code Online (Sandbox Code Playgroud)

我在我的本机项目中的 App.js 中调用它,但它给出了错误“fetch() 操作无法完成,由于节流”可能是什么问题?

firebase reactjs react-native

6
推荐指数
1
解决办法
3167
查看次数

如果没有触摸启动,则无法记录触摸移动

当我运行我的反应本机代码时,它给出错误并显示console.error: '无法在没有触摸启动的情况下记录触摸移动。'

但如果我第二次运行代码时,它不会显示此类错误并且代码运行成功。这个错误背后的原因是什么?请建议我任何答案。

console.log react-native

5
推荐指数
1
解决办法
6032
查看次数

标签 统计

react-native ×2

console.log ×1

firebase ×1

reactjs ×1