Skip to content

Commit

Permalink
docs(storage): minor fix (#3422)
Browse files Browse the repository at this point in the history
replace storage with storage() in example
  • Loading branch information
vaibhavhrt authored Apr 18, 2020
1 parent 7f52366 commit 064c767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/storage/usage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 064c767

Please sign in to comment.