npm.io
0.5.0 • Published 4 years ago

@skillnation/react-native-firebase-hooks

Licence
Apache-2.0
Version
0.5.0
Deps
0
Size
249 kB
Vulns
0
Weekly
0
Stars
25

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'

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

Keywords