How to use the rxfire/storage.getDownloadURL function in rxfire

To help you get started, we’ve selected a few rxfire examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FirebaseExtended / reactfire / reactfire / storage / index.tsx View on Github external
export function useStorageDownloadURL(
  ref: storage.Reference,
  options?: ReactFireOptions
): string | T {
  return useObservable(
    getDownloadURL(ref),
    'storage download:' + ref.toString(),
    options ? options.startWithValue : undefined
  );
}