92799bc0a9 | ||
---|---|---|
android | ||
bin | ||
docs | ||
ios | ||
lib | ||
.babelrc | ||
.editorconfig | ||
.eslintrc | ||
.flowconfig | ||
.gitignore | ||
.npmignore | ||
.watchmanconfig | ||
LICENSE | ||
README.md | ||
RNFirebase.podspec | ||
firebase.android.js | ||
firebase.ios.js | ||
index.js | ||
package.json |
README.md
React Native Firebase
RNFirebase makes using the latest Firebase with React Native straight-forward.
npm i react-native-firebase --save
RNFirebase is a light-weight layer sitting on-top of the native Firebase libraries for both iOS and Android which mirrors the React Native JS api as closely as possible.
Featuring; authentication, storage, real-time database, presence, analytics, cloud messaging, remote configuration, redux support and more!
RNFirebase vs Firebase JS lib
Although the Firebase JavaScript library will work with React Native, it is mainly designed for the web.
The native SDK's are much better for performance compared to the web SDK. The web SDK will run on the same thread as your apps (JS thread) therefore limiting your JS framerate, potentially affecting things touch events and transitions/animations.
The native SDK's also contains functionality that the web SDK's do not, for example Analytics and Remote Config.
Examples app
There's currently a work in progress examples app which aims to demonstrate various real world use-case scenarios with React Native & Firebase. We welcome any new examples or updates to existing ones, however please do not overcomplicate them.
Test app
To help ensure changes and features work across both iOS & Android, we've developed an app specifically to test react-native-firebase
against the firebase
web SDK. Please see the react-native-firebase-tests
repository for more information.
Documentation
- Installation
- Firebase Setup
- API
- Redux
Contributing
- TODO