Update README.md
This commit is contained in:
parent
f7a3ba4818
commit
4e92fcac98
20
README.md
20
README.md
|
@ -15,24 +15,32 @@ npm i react-native-firebase --save
|
||||||
#### Platform specific setup guides:
|
#### Platform specific setup guides:
|
||||||
[![ios](https://a.fsdn.com/sd/topics/ios_64.png)](docs/installation.ios.md) [![android](https://a.fsdn.com/sd/topics/android_64.png)](docs/installation.android.md)
|
[![ios](https://a.fsdn.com/sd/topics/ios_64.png)](docs/installation.ios.md) [![android](https://a.fsdn.com/sd/topics/android_64.png)](docs/installation.android.md)
|
||||||
|
|
||||||
### RNFirebase vs Firebase Web SDK
|
<hr>
|
||||||
|
|
||||||
|
### Why
|
||||||
|
|
||||||
RNFirebase is a _light-weight_ layer sitting on-top of the native Firebase libraries for both iOS and Android which mirrors the Firebase Web SDK as closely as possible.
|
RNFirebase is a _light-weight_ layer sitting on-top of the native Firebase libraries for both iOS and Android which mirrors the Firebase Web SDK as closely as possible.
|
||||||
|
|
||||||
Although the [Firebase Web SDK](https://www.npmjs.com/package/firebase) library will work with React Native, it is built for the web.
|
Although the [Firebase Web SDK](https://www.npmjs.com/package/firebase) library will work with React Native, it is mainly built for the web.
|
||||||
|
|
||||||
RNFirebase provides a JavaScript bridge to the native Firebase SDKs for both iOS and Android. The Firebase processes will run on the native thread, allowing the rest of your app to run on the [JS thread](https://facebook.github.io/react-native/docs/performance.html#javascript-frame-rate). The Firebase Web SDK also runs on the JS thread, therefore potentially affecting the frame rate causing jank with animations, touch events etc. All in, RNFirebase provides much faster performance (~2x) over the web SDK.
|
RNFirebase provides a JavaScript bridge to the native Firebase SDKs for both iOS and Android. Firebase will run on the native thread, allowing the rest of your app to run on the [JS thread](https://facebook.github.io/react-native/docs/performance.html#javascript-frame-rate). The Firebase Web SDK also runs on the JS thread, therefore potentially affecting the frame rate causing jank with animations, touch events etc. All in all, RNFirebase provides much faster performance (~2x) over the web SDK.
|
||||||
|
|
||||||
The native SDKs also allow us to hook into device events which are not possible with the web SDK, for example crash reporting, offline realtime database support, analyics and more!
|
The native SDKs also allow us to hook into device sdk's which are not possible with the web SDK, for example crash reporting, offline realtime database support, analyics and more!
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
### Test app
|
### 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](https://www.npmjs.com/package/firebase). Please see the [`react-native-firebase-tests`](https://github.com/invertase/react-native-firebase-tests) repository for more information.
|
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](https://www.npmjs.com/package/firebase). Please see the [`react-native-firebase-tests`](https://github.com/invertase/react-native-firebase-tests) repository for more information.
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
### Examples app
|
### Examples app
|
||||||
|
|
||||||
There's currently a work in progress [examples app](https://github.com/invertase/react-native-firebase-examples) which aims to demonstrate various real world use-case scenarios with React Native & Firebase. We welcome any new examples or updates to existing ones.
|
There's currently a work in progress [examples app](https://github.com/invertase/react-native-firebase-examples) which aims to demonstrate various real world use-case scenarios with React Native & Firebase. We welcome any new examples or updates to existing ones.
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|
||||||
RNFirebase aims to replicate the Firebase Web SDK as closely as possible. Because of this, the documentation focuses around the installation, differences & best practices of this library. Please see the [Firebase Web SDK](https://firebase.google.com/docs/reference/js/) documentation for Firebase functionality.
|
RNFirebase aims to replicate the Firebase Web SDK as closely as possible. Because of this, the documentation focuses around the installation, differences & best practices of this library. Please see the [Firebase Web SDK](https://firebase.google.com/docs/reference/js/) documentation for Firebase functionality.
|
||||||
|
@ -48,6 +56,8 @@ RNFirebase aims to replicate the Firebase Web SDK as closely as possible. Becaus
|
||||||
* [Messaging](docs/api/cloud-messaging.md)
|
* [Messaging](docs/api/cloud-messaging.md)
|
||||||
* [Crash](docs/api/crash.md)
|
* [Crash](docs/api/crash.md)
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|
||||||
We welcome any contribution to the repository. Please ensure your changes to the JavaScript code follow the styling guides controlled by ESlint. Changes to native code should be kept clean and follow the standard of existing code.
|
We welcome any contribution to the repository. Please ensure your changes to the JavaScript code follow the styling guides controlled by ESlint. Changes to native code should be kept clean and follow the standard of existing code.
|
||||||
|
@ -56,6 +66,8 @@ Changes to existing code should ensure all relevant tests on the test app pass.
|
||||||
|
|
||||||
**Project board:** https://github.com/invertase/react-native-firebase/projects
|
**Project board:** https://github.com/invertase/react-native-firebase/projects
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
- MIT
|
- MIT
|
||||||
|
|
Loading…
Reference in New Issue