@skillnation/react-native-firebase-hooks
v0.5.0
Published
React Hooks for React Native Firebase
Downloads
405
Maintainers
Readme
react-native-firebase-hooks
React Hooks for React Native Firebase
Installation
yarn add @skillnation/react-native-firebase-hooks
Note: This assumes you have setup react-native-firebase in your project.
Usage
Example
Documentation
The API is exactly the same as react-firebase-hooks. Only the imports are different:
- import {} from 'react-firebase-hooks/MODULE_NAME'
+ import {} from '@skillnation/react-native-firebase-hooks/MODULE_NAME'
- Authentication Hooks
- Cloud Firestore Hooks
- Cloud Functions Hooks
- Cloud Messaging Hooks
- Cloud Storage Hooks
- Realtime Database Hooks
Why use this instead of react-firebase-hooks?
react-firebase-hooks
is incompatible with the latest versions of react-native-firebase
, especially from a types perspective.
This works internally the mostly the same as react-firebase-hooks.
So you really only want to use that for react native.
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT