Merge branch 'v2' of github.com:invertase/react-native-firebase into v2
This commit is contained in:
commit
e52e01f735
|
@ -18,6 +18,8 @@
|
|||
npm i react-native-firebase --save
|
||||
```
|
||||
|
||||
> *Pst! [We're working on V2 with loads of new features!](https://github.com/invertase/react-native-firebase/pull/130)*
|
||||
|
||||
#### Platform specific setup guides:
|
||||
[![ios](https://a.fsdn.com/sd/topics/ios_64.png)](http://invertase.io/react-native-firebase/#/installation-ios) [![android](https://a.fsdn.com/sd/topics/android_64.png)](http://invertase.io/react-native-firebase/#/installation-android)
|
||||
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
# FAQs / Troubleshooting
|
||||
|
||||
## Usage with Expo
|
||||
|
||||
If you use Expo and would like to use this package, you'll need to eject. If you do not want to eject, but wish to make use of features
|
||||
such as Realtime Database (without offline support) & Authentication, you can still use the Firebase Web SDK in your project.
|
||||
|
||||
For features such a Crash Reporting, Push Notifications (via Firebase not Expo), Performance Monitoring, AdMob, Analytics, Storage & Remote Config, you will have to eject your Expo project as these require the native SDKs, as the Web SDK does not support these.
|
||||
|
||||
You can see an indepth conversation [here](https://expo.canny.io/feature-requests/p/full-native-firebase-integration).
|
||||
|
||||
## Comparison to Firestack
|
||||
|
||||
Firestack was a great start to integrating Firebase and React Native, however has underlying issues which needed to be fixed.
|
||||
|
|
|
@ -268,7 +268,7 @@ declare module "react-native-firebase" {
|
|||
/**
|
||||
* Returns a new firebase reference instance
|
||||
* */
|
||||
ref(path: string): RnReference
|
||||
ref(path?: string): RnReference
|
||||
/**
|
||||
* register listener
|
||||
*/
|
||||
|
|
|
@ -115,7 +115,7 @@ export default class RemoteConfig extends Base {
|
|||
return FirebaseRemoteConfig
|
||||
.getValues(keys || [])
|
||||
.then((nativeValues) => {
|
||||
const values = {};
|
||||
const values:{[String]: Object} = {};
|
||||
for (let i = 0, len = keys.length; i < len; i++) {
|
||||
values[keys[i]] = this._nativeValueToJS(nativeValues[i]);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "react-native-firebase",
|
||||
"version": "1.1.0",
|
||||
"author": "Invertase <contact@invertase.io> (http://invertase.io)",
|
||||
"description": "A well tested feature rich Firebase implementation for React Native, supporting iOS & Android",
|
||||
"description": "A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Auth, Database, Messaging, Remote Config, Storage, Admob, Analytics, Crash Reporting, and Performance.",
|
||||
"main": "index",
|
||||
"scripts": {
|
||||
"build": "./node_modules/.bin/babel --source-maps=true --out-dir=dist .",
|
||||
|
@ -49,7 +49,8 @@
|
|||
"android",
|
||||
"ios",
|
||||
"crash",
|
||||
"firestack"
|
||||
"firestack",
|
||||
"performance"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"react": "*",
|
||||
|
|
Loading…
Reference in New Issue