简体   繁体   English

firebase web 或 react-native-firebase

[英]firebase web or react-native-firebase

I'm building a React Native app with Firebase for backend, and I couldn't find good information to help me decide if I should go with the official firebase web library, or react-native-firebase.我正在为后端构建一个带有 Firebase 的 React Native 应用程序,但我找不到好的信息来帮助我决定是否应该使用官方 firebase web 库或 react-native-firebase 来决定是否应该使用 go。

This article from Firebase says 这篇文章来自 Firebase

"With the updates in the 3.1.0 SDK, almost all of the JavaScript SDK's functionality should now work smoothly in React Native" “随着 3.1.0 SDK 中的更新,几乎所有 JavaScript SDK 的功能现在应该可以在 React Native 中顺利运行”

but at the react-native-firebase github docs , it says但在react-native-firebase github 文档中,它说

The Web SDK doesn't support many of Firebase's services. Web SDK 不支持 Firebase 的许多服务。

Normally I would decide to go with the official Firebase Web SDK, but I see there's many people that complain about it, so I'm not sure what to do.通常我会决定 go 与官方 Firebase Web SDK,但我看到有很多人抱怨它,所以我不知道该怎么做。 Any advice/help would be appreciated.任何建议/帮助将不胜感激。 Thank you.谢谢你。

In my experience react-native-firebase is very good.以我的经验,react-native-firebase 非常好。 There are very few things you can't do that you could do with the web version and the maintainers are very helpful.使用 web 版本可以做的事情很少,而且维护人员非常乐于助人。

My only complaint is that unit testing is very difficult/impossible.我唯一的抱怨是单元测试非常困难/不可能。 If you intend to test your app properly you will be limited to integration tests with something like detox.如果您打算正确测试您的应用程序,您将仅限于使用排毒之类的集成测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM