Globals / "storage"
Ƭ StorageImageProps: { placeHolder?: JSX.Element ; storage?: firebase.storage.Storage ; storagePath: string ; suspense?: undefined | false | true }
Defined in src/storage.tsx:60
Name | Type |
---|---|
placeHolder? |
JSX.Element |
storage? |
firebase.storage.Storage |
storagePath |
string |
suspense? |
undefined | false | true |
▸ INTERNALStorageImage(props
: StorageImageProps & React.DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>): Element
Defined in src/storage.tsx:75
Name | Type |
---|---|
props |
StorageImageProps & React.DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> |
Returns: Element
▸ StorageFromContext(props
: StorageImageProps & React.DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>): Element
Defined in src/storage.tsx:67
Name | Type |
---|---|
props |
StorageImageProps & React.DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> |
Returns: Element
▸ StorageImage(props
: StorageImageProps & React.DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>): Element
Defined in src/storage.tsx:102
Name | Type |
---|---|
props |
StorageImageProps & React.DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> |
Returns: Element
▸ _fromTask(task
: UploadTask): Observable<UploadTaskSnapshot>
Defined in src/storage.tsx:13
modified version of rxFire's _fromTask
Name | Type | Description |
---|---|---|
task |
UploadTask |
Returns: Observable<UploadTaskSnapshot>
▸ useStorageDownloadURL<T>(ref
: Reference, options?
: ReactFireOptions<T>): ObservableStatus<string | T>
Defined in src/storage.tsx:53
Subscribe to a storage ref's download URL
Name | Default |
---|---|
T |
string |
Name | Type | Description |
---|---|---|
ref |
Reference | reference to the blob you want to download |
options? |
ReactFireOptions<T> |
Returns: ObservableStatus<string | T>
▸ useStorageTask<T>(task
: UploadTask, ref
: Reference, options?
: ReactFireOptions<T>): ObservableStatus<UploadTaskSnapshot | T>
Defined in src/storage.tsx:36
Subscribe to the progress of a storage task
Name | Default |
---|---|
T |
unknown |
Name | Type | Description |
---|---|---|
task |
UploadTask | the task you want to listen to |
ref |
Reference | reference to the blob the task is acting on |
options? |
ReactFireOptions<T> |
Returns: ObservableStatus<UploadTaskSnapshot | T>