doc(storage): fix multiple buckets example (#3901)

This commit is contained in:
Mars Lan
2020-07-07 11:33:07 -07:00
committed by GitHub
parent a5e4025256
commit f0959f2054

View File

@@ -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');
```