哪个库具有更好的react-native-firebase或firebase性能? [英] Which library has a better performance react-native-firebase or firebase?

查看:44
本文介绍了哪个库具有更好的react-native-firebase或firebase性能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用React Native实现Firebase,但我不确定应该使用哪个库, firebase react-native-fire .

I am trying to implement Firebase with React Native and I am not sure what library I should use, firebase or react-native-fire.

我对官方版本的Firebase更加信任,但是有一个比较表显示,react-native-firebase比firebase支持更多功能.哪个功能更多,性能更好?

I trust more in the official one, firebase, but there is a comparison table which shows that react-native-firebase supports more features than firebase. Which has more features, have a better performance?

推荐答案

Firebase-js-sdk主要针对网络开发,而 react-native-firebase 主要在 firebase 本机sdk的帮助下为 React-Native 开发的.因此,在性能方面, react-native-firebase 会比 Firebase-js-sdk ,因为

Firebase-js-sdk is mainly developed for web and whereas react-native-firebase is mainly developed for React-Native with the help of firebase native sdk. So in the performance wise the react-native-firebase will work better than the Firebase-js-sdk because react-native-firebase runs in the native thread so you could get the better frame rate in react native whereas the Firebase-js-sdk runs in the Js thread.

我建议您继续使用 react-native-firebase .

这篇关于哪个库具有更好的react-native-firebase或firebase性能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆