mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
docs(storage): minor fix (#3422)
replace storage with storage() in example
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user