8d84622228 | ||
---|---|---|
android | ||
docs | ||
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.
Example app
We have a working application example available in at invertase/firebase-app. Check it out for more details about how to use firebase with react native.
Documentation
- Installation
- Firebase Setup
- API
- Redux
Contributing
- TODO