mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 11:16:18 +08:00
doc(storage): fix multiple buckets example (#3901)
This commit is contained in:
@@ -183,8 +183,9 @@ is passed to the `storage` instance. To switch buckets, provide the module with
|
||||
Firebase Console, under Storage > Files.
|
||||
|
||||
```js
|
||||
import storage from '@react-native-firebase/storage';
|
||||
|
||||
import storage, { firebase } from '@react-native-firebase/storage';
|
||||
|
||||
const defaultStorageBucket = storage();
|
||||
const secondaryStorageBucket = storage('gs://my-secondary-bucket.appspot.com');
|
||||
const secondaryStorageBucket = firebase.app().storage('gs://my-secondary-bucket.appspot.com');
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user