diff --git a/docs/installation-android.md b/docs/installation-android.md index afab665b..274f5284 100644 --- a/docs/installation-android.md +++ b/docs/installation-android.md @@ -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" diff --git a/docs/migration-guide.md b/docs/migration-guide.md index 9a52da5c..f641903b 100644 --- a/docs/migration-guide.md +++ b/docs/migration-guide.md @@ -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. diff --git a/docs/modules/storage.md b/docs/modules/storage.md index 6ea5922c..757008af 100644 --- a/docs/modules/storage.md +++ b/docs/modules/storage.md @@ -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