react-native-firebase README

The project's README from github.com/invertase/react-native-firebase. As one markdown file: README.md.


React Native Firebase

NPM downloads NPM version License Maintained with Lerna

Chat on Discord Follow on Twitter Follow on Facebook


React Native Firebase is a collection of official React Native modules connecting you to Firebase services; each module is a light-weight JavaScript layer connecting you to the native Firebase SDKs for both iOS and Android.

React Native Firebase is built with four key principles in mind;

Firebase Modules

This is the root of the mono-repo for React Native Firebase, if you're looking for a specific package please select the package link from below.

The main package that you interface with is App (@react-native-firebase/app)

Name Downloads
AI badge
Analytics badge
App badge
App Check badge
App Distribution badge
Authentication badge
Cloud Firestore badge
Cloud Functions badge
Cloud Messaging badge
Cloud Storage badge
Crashlytics badge
In-app Messaging badge
Installations badge
ML badge
Performance Monitoring badge
Phone Number Verification badge
Realtime Database badge
Remote Config badge

Documentation

Looking for the Version 5 documentation? View legacy documentation.

Contributing

License


Built and maintained by Invertase.

react-native-firebase (invertase/react-native-firebase)

Searching Database…

这是什么?一组 React Native 模块,把你的应用连接到 Firebase 服务——每个模块都是在 iOS 和 Android 原生 Firebase SDK 之上的轻量级 JavaScript 封装。
它是单个库还是一堆包?一个模块化的 monorepo:先安装核心包 @react-native-firebase/app,然后为你用到的每个 Firebase 服务单独添加一个包,比如 Auth 或 Firestore。
我怎么把它加到我的应用里?把核心包 @react-native-firebase/app 安装到你的 React Native 项目中,然后按照快速入门指南操作;每个服务模块都自带各自的安装说明和参考文档。
覆盖了哪些 Firebase 服务?共 18 个模块,包括 Authentication、Cloud Firestore、Cloud Messaging、Cloud Storage、Crashlytics、Analytics、Realtime Database、Remote Config、Performance Monitoring、ML 以及手机号验证。
在 React Native 应用里,为什么用它而不是 Firebase Web SDK?它的 API 与官方 Web SDK 保持一致,可以直接替换,但底层调用的是原生 SDK,所以同一份代码可以在 Web 和原生平台上复用。
这个项目成熟吗?它从 2017 年 2 月开始开发,在 GitHub 上有超过 12,000 颗星,由 Invertase 积极维护,并配有用于代码检查、文档和发布的 CI 工作流。
我的应用还在用 Version 5——那些文档没了吗?没丢,Version 5 的文档仍以旧版文档的形式提供,而当前的模块化包则有最新的快速入门和参考 API 文档。
它能用于生产环境吗?这正是它的卖点:每个模块都经过充分测试,测试覆盖率超过 95%,提供一流的 TypeScript 类型支持,并配有完整的参考文档、指南和常见问题解答。
Creator
invertase
Size
112.6 MB
Stars
12.3K
Age
9y
Commits · 90 Days