New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-sf-bubble

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-sf-bubble

气泡

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

react-native-sf-aliyun-oss

阿里云文件上传、下载

安装

  • npm install react-native-sf-aliyun-oss
  • npm install react-native-aliyun-oss-cp
  • react-native link react-native-aliyun-oss-cp

Methods

MethodsParamsParam TypesdescriptionExample
configconfigobject阿里云配置参数参考例子
uploadfolder/filePath/ext/progress/suc/failstring/string/string/func/func/func上传文件参考例子
downLoadfilePath/progress/suc/failstring/func/func/func下载文件参考例子

例子

import SFAliyunOss from 'react-native-sf-aliyun-oss';

//配置一次
const config = {
    AccessKey: '阿里云的AccessKey',
    SecretKey: '阿里云的SecretKey',
    SecretToken: '阿里云的SecretToken',
    endPoint: '阿里云的endPoint',
    bucketName: '阿里云的bucketName'
  }
SFAliyunOss.config(config)
//文件上传
SFAliyunOss.upload('阿里云文件目录','上传文件的地址','文件后缀名',(progress)=>{},(fileKey)=>{},(err)=>{})
//多文件上传
SFAliyunOss.upload('阿里云文件目录',[{filePath:'',ext:'png'},{filePath:'',ext:'png'}],(progress)=>{},(fileKeys)=>{},(err)=>{})
//文件下载
SFAliyunOss.downLoad('阿里云文件地址',(progress)=>{},(filePath)=>{},(err)=>{})

Keywords

bubble

FAQs

Package last updated on 15 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts