代码拉取完成,页面将自动刷新
export type ReactNativeBlobUtilConfig = {
Progress: any,
UploadProgress: any,
fileCache : bool,
transformFile: boolean;
path : string,
appendExt : string,
session : string,
addAndroidDownloads : any,
indicator : bool,
followRedirect : bool,
trusty : bool,
wifiOnly : bool
};
export type ReactNativeBlobUtilNative = {
// API for fetch octet-stream data
fetchBlob : (
options:fetchConfig,
taskId:string,
method:string,
url:string,
headers:any,
body:any,
callback:(err:any, ...data:any) => void
) => void,
// API for fetch form data
fetchBlobForm : (
options:fetchConfig,
taskId:string,
method:string,
url:string,
headers:any,
form:Array<any>,
callback:(err:any, ...data:any) => void
) => void,
// open file stream
readStream : (
path:string,
encode:'utf8' | 'ascii' | 'base64'
) => void,
// get system folders
getEnvironmentDirs : (dirs:any) => void,
// unlink file by path
unlink : (path:string, callback: (err:any) => void) => void,
removeSession : (paths:Array<string>, callback: (err:any) => void) => void,
ls : (path:string, callback: (err:any) => void) => void,
};
export type ReactNativeBlobUtilResponseInfo = {
taskId : string,
state : number,
headers : any,
status : number,
respType : 'text' | 'blob' | '' | 'json',
rnfbEncode : 'path' | 'base64' | 'ascii' | 'utf8'
}
export type ReactNativeBlobUtilStream = {
onData : () => void,
onError : () => void,
onEnd : () => void,
_onData : () => void,
_onEnd : () => void,
_onError : () => void,
}
export type filedescriptor = { path: string, parentFolder: string, mimeType: string }
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。