Firestack makes using the latest Firebase with React Native straight-forward.
npm i react-native-firestack --save
Firestack 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!
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.
We have a working application example available in at fullstackreact/FirestackApp. Check it out for more details about how to use Firestack.
- Installation
- Firebase Setup
- API
- Redux
Feature | Firestack | Firebase |
---|---|---|
Real time database | -- | YES |
Authentication | -- | YES |
Cloud messaging | -- | YES |
Storage | -- | YES |
Crash reporting | -- | YES |
Notifications | -- | YES |
Remote config | -- | YES |
Dynamic links | -- | YES |
AdMob | -- | YES |
Analytics | -- | YES |
App indexing | -- | YES |
Hosting | -- | YES |
AdWords | -- | YES |
Invites | -- | YES |
For a detailed discussion of how Firestack works as well as how to contribute, check out our contribution guide.