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
|
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:
|
#### Platform specific setup guides:
|
||||||
[](http://invertase.io/react-native-firebase/#/installation-ios) [](http://invertase.io/react-native-firebase/#/installation-android)
|
[](http://invertase.io/react-native-firebase/#/installation-ios) [](http://invertase.io/react-native-firebase/#/installation-android)
|
||||||
|
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
# FAQs / Troubleshooting
|
# 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
|
## Comparison to Firestack
|
||||||
|
|
||||||
Firestack was a great start to integrating Firebase and React Native, however has underlying issues which needed to be fixed.
|
Firestack was a great start to integrating Firebase and React Native, however has underlying issues which needed to be fixed.
|
||||||
|
2
index.d.ts
vendored
2
index.d.ts
vendored
@ -268,7 +268,7 @@ declare module "react-native-firebase" {
|
|||||||
/**
|
/**
|
||||||
* Returns a new firebase reference instance
|
* Returns a new firebase reference instance
|
||||||
* */
|
* */
|
||||||
ref(path: string): RnReference
|
ref(path?: string): RnReference
|
||||||
/**
|
/**
|
||||||
* register listener
|
* register listener
|
||||||
*/
|
*/
|
||||||
|
@ -115,7 +115,7 @@ export default class RemoteConfig extends Base {
|
|||||||
return FirebaseRemoteConfig
|
return FirebaseRemoteConfig
|
||||||
.getValues(keys || [])
|
.getValues(keys || [])
|
||||||
.then((nativeValues) => {
|
.then((nativeValues) => {
|
||||||
const values = {};
|
const values:{[String]: Object} = {};
|
||||||
for (let i = 0, len = keys.length; i < len; i++) {
|
for (let i = 0, len = keys.length; i < len; i++) {
|
||||||
values[keys[i]] = this._nativeValueToJS(nativeValues[i]);
|
values[keys[i]] = this._nativeValueToJS(nativeValues[i]);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "react-native-firebase",
|
"name": "react-native-firebase",
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"author": "Invertase <contact@invertase.io> (http://invertase.io)",
|
"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",
|
"main": "index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "./node_modules/.bin/babel --source-maps=true --out-dir=dist .",
|
"build": "./node_modules/.bin/babel --source-maps=true --out-dir=dist .",
|
||||||
@ -49,7 +49,8 @@
|
|||||||
"android",
|
"android",
|
||||||
"ios",
|
"ios",
|
||||||
"crash",
|
"crash",
|
||||||
"firestack"
|
"firestack",
|
||||||
|
"performance"
|
||||||
],
|
],
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "*",
|
"react": "*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user