docs(storage): minor fix (#3422)

replace storage with storage() in example
This commit is contained in:
Vaibhav Vishal
2020-04-19 01:28:14 +05:30
committed by GitHub
parent 7f52366e22
commit 064c767389

View File

@@ -131,7 +131,7 @@ need to call the `getDownloadURL` method on a reference:
```js
import storage from '@react-native-firebase/storage';
const url = await storage.ref('images/profile-1.png').getDownloadURL();
const url = await storage().ref('images/profile-1.png').getDownloadURL();
```
> Images uploaded manually via the Firebase Console automatically generate a download URL.