Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
9a21e0802c
|
@ -73,13 +73,13 @@ You'll also need to include RNFirebase and the required Firebase dependencies in
|
|||
|
||||
```
|
||||
dependencies {
|
||||
# RNFirebase Required dependencies
|
||||
// RNFirebase Required dependencies
|
||||
compile(project(':react-native-firebase')) {
|
||||
transitive = false
|
||||
}
|
||||
compile "com.google.firebase:firebase-core:11.0.0"
|
||||
|
||||
# RNFirebase optional dependencies
|
||||
// RNFirebase optional dependencies
|
||||
compile "com.google.firebase:firebase-ads:11.0.0"
|
||||
compile "com.google.firebase:firebase-analytics:11.0.0"
|
||||
compile "com.google.firebase:firebase-auth:11.0.0"
|
||||
|
|
|
@ -108,7 +108,7 @@ Add the packages to the `getPackages()` method as required:
|
|||
|
||||
##### 6) iOS - Update podfile:
|
||||
|
||||
|
||||
First, delete your `Podfile.lock` file, and after making any changes from the below re-run `pod install` in your ios directory.
|
||||
|
||||
As all firebase modules are now optional you only need to import the Firebase functionality that you require in your application. Simply update your Podfile to only include the Firebase modules for functionality that you require in your app.
|
||||
|
||||
|
|
|
@ -19,6 +19,18 @@ firebase.storage()
|
|||
});
|
||||
```
|
||||
|
||||
|
||||
### With metadata
|
||||
|
||||
```javascript
|
||||
const metadata = {
|
||||
contentType: 'image/jpeg'
|
||||
}
|
||||
firebase.storage()
|
||||
.ref('/files/1234')
|
||||
.putFile('/path/to/file/1234', metadata)
|
||||
```
|
||||
|
||||
### Listen to upload state
|
||||
|
||||
```javascript
|
||||
|
|
Loading…
Reference in New Issue