小编Kal*_*ela的帖子

Firebase更新错误:存储在Firestore中的日期对象的行为将发生变化,您的应用可能会中断

我在Firestore 5.2.0中使用react-native,但错误是将Firestore更新到5.0.4.

错误是:

存储在Firestore中的日期对象的行为将发生变化,您的应用可能会中断.要隐藏此警告并确保您的应用不会中断,您需要在调用其他云Firestore方法之前将以下代码添加到您的应用:

const firestore= firebase.firestore();
const settings ={ /*your settings */ timestampInSnapshots: true};
firestore.settings(settings);
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮助我如何摆脱这个错误?

谢谢

Firebase错误

react-native google-cloud-firestore

0
推荐指数
1
解决办法
1006
查看次数