| 
				
			 | 
			
			
				@@ -51,7 +51,7 @@ yarn install aliyun-oss-react-native --save 
			 | 
		
	
		
			
			| 
				51
			 | 
			
				51
			 | 
			
			
				 react native项目下运行`react-native link`命令 
			 | 
		
	
		
			
			| 
				52
			 | 
			
				52
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				53
			 | 
			
				53
			 | 
			
			
				 ```script 
			 | 
		
	
		
			
			| 
				54
			 | 
			
				
			 | 
			
			
				-react-native link 
			 | 
		
	
		
			
			| 
				
			 | 
			
				54
			 | 
			
			
				+react-native link aliyun-oss-react-native 
			 | 
		
	
		
			
			| 
				55
			 | 
			
				55
			 | 
			
			
				 ``` 
			 | 
		
	
		
			
			| 
				56
			 | 
			
				56
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				57
			 | 
			
				57
			 | 
			
			
				 注意:由于react native脚手架不同版本的问题,有时候自动安装可能会失败,可手动添加android和iOS的的依赖库。同样为了兼容IPv6-Only网络,iOS工程中需参考aliyun-oss-ios-sdk说明中引入以下包。 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -193,7 +193,7 @@ AliyunOSS.enableDevMode() 
			 | 
		
	
		
			
			| 
				193
			 | 
			
				193
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				194
			 | 
			
				194
			 | 
			
			
				 ### initWithPlainTextAccessKey(不建议) 
			 | 
		
	
		
			
			| 
				195
			 | 
			
				195
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				196
			 | 
			
				
			 | 
			
			
				-该接口需要通过明文授权acckeyId和accekeySecret,开发者这可以使用,但是我们不建议 
			 | 
		
	
		
			
			| 
				
			 | 
			
				196
			 | 
			
			
				+该接口需要通过明文授权accesskeyId和accesskeySecret,开发者这可以使用,但是我们不建议 
			 | 
		
	
		
			
			| 
				197
			 | 
			
				197
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				198
			 | 
			
				198
			 | 
			
			
				 ```javascript 
			 | 
		
	
		
			
			| 
				199
			 | 
			
				199
			 | 
			
			
				 const endPoint = "XXX" 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -202,7 +202,7 @@ const configuration = { 
			 | 
		
	
		
			
			| 
				202
			 | 
			
				202
			 | 
			
			
				     timeoutIntervalForRequest: 30, 
			 | 
		
	
		
			
			| 
				203
			 | 
			
				203
			 | 
			
			
				     timeoutIntervalForResource: 24 * 60 * 60 
			 | 
		
	
		
			
			| 
				204
			 | 
			
				204
			 | 
			
			
				  }; 
			 | 
		
	
		
			
			| 
				205
			 | 
			
				
			 | 
			
			
				-AliyunOSS.initWithPlainTextAccessKey(accessKey, secretKey, endPoint, configuration); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				205
			 | 
			
			
				+AliyunOSS.initWithPlainTextAccessKey(accesskeyId, accesskeySecret, endPoint, configuration); 
			 | 
		
	
		
			
			| 
				206
			 | 
			
				206
			 | 
			
			
				 ``` 
			 | 
		
	
		
			
			| 
				207
			 | 
			
				207
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				208
			 | 
			
				208
			 | 
			
			
				 ### initWithSigner 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -218,7 +218,7 @@ AliyunOSS.initWithSigner(signature, accessKey, endPoint, configuration); 
			 | 
		
	
		
			
			| 
				218
			 | 
			
				218
			 | 
			
			
				 该接口通过SecurityToken授权,参考[STS访问控制](https://help.aliyun.com/document_detail/32046.html?spm=a2c4g.11186623.2.8.dfV9i0),使用可查看 
			 | 
		
	
		
			
			| 
				219
			 | 
			
				219
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				220
			 | 
			
				220
			 | 
			
			
				 ``` 
			 | 
		
	
		
			
			| 
				221
			 | 
			
				
			 | 
			
			
				-AliyunOSS.initWithSecurityToken(signature, accessKey, endPoint, configuration); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				221
			 | 
			
			
				+AliyunOSS.initWithSecurityToken(SecurityToken, accessKeyId, accessKeySecret, endPoint, configuration); 
			 | 
		
	
		
			
			| 
				222
			 | 
			
				222
			 | 
			
			
				 ``` 
			 | 
		
	
		
			
			| 
				223
			 | 
			
				223
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				224
			 | 
			
				224
			 | 
			
			
				 ### initWithServerSTS 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -226,7 +226,7 @@ AliyunOSS.initWithSecurityToken(signature, accessKey, endPoint, configuration); 
			 | 
		
	
		
			
			| 
				226
			 | 
			
				226
			 | 
			
			
				 该接口通过本地鉴权服务器授权,使用可查看 
			 | 
		
	
		
			
			| 
				227
			 | 
			
				227
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				228
			 | 
			
				228
			 | 
			
			
				 ```javascript 
			 | 
		
	
		
			
			| 
				229
			 | 
			
				
			 | 
			
			
				-AliyunOSS.initWithSecurityToken(signature, accessKey, endPoint, configuration); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				229
			 | 
			
			
				+AliyunOSS.initWithSecurityToken(/*local auth server*/, endPoint, configuration); 
			 | 
		
	
		
			
			| 
				230
			 | 
			
				230
			 | 
			
			
				 ``` 
			 | 
		
	
		
			
			| 
				231
			 | 
			
				231
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				232
			 | 
			
				232
			 | 
			
			
				 ### asyncUpload 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -241,10 +241,10 @@ AliyunOSS.asyncUpload(bucketname, objectKey, filepath).then().catch() 
			 | 
		
	
		
			
			| 
				241
			 | 
			
				241
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				242
			 | 
			
				242
			 | 
			
			
				 ```javascript 
			 | 
		
	
		
			
			| 
				243
			 | 
			
				243
			 | 
			
			
				  AliyunOSS.initMultipartUpload(bucketname,objectkey).then((e)=>{ 
			 | 
		
	
		
			
			| 
				244
			 | 
			
				
			 | 
			
			
				-         console.log(e) 
			 | 
		
	
		
			
			| 
				245
			 | 
			
				
			 | 
			
			
				-         //e 为uploadId 
			 | 
		
	
		
			
			| 
				
			 | 
			
				244
			 | 
			
			
				+       //e 为uploadId 
			 | 
		
	
		
			
			| 
				
			 | 
			
				245
			 | 
			
			
				+       console.log(e) 
			 | 
		
	
		
			
			| 
				246
			 | 
			
				246
			 | 
			
			
				     }).catch((error) => { 
			 | 
		
	
		
			
			| 
				247
			 | 
			
				
			 | 
			
			
				-        console.log(error) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				247
			 | 
			
			
				+       console.log(error) 
			 | 
		
	
		
			
			| 
				248
			 | 
			
				248
			 | 
			
			
				  }) 
			 | 
		
	
		
			
			| 
				249
			 | 
			
				249
			 | 
			
			
				 ``` 
			 | 
		
	
		
			
			| 
				250
			 | 
			
				250
			 | 
			
			
				 ### multipartUpload 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -280,7 +280,7 @@ AliyunOSS.listParts(multipartBucket,multipartObjectKey,upoadId).then((e)=>{ 
			 | 
		
	
		
			
			| 
				280
			 | 
			
				280
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				281
			 | 
			
				281
			 | 
			
			
				 ``` 
			 | 
		
	
		
			
			| 
				282
			 | 
			
				282
			 | 
			
			
				  // xxx为图片处理选项,具体可查看官网 
			 | 
		
	
		
			
			| 
				283
			 | 
			
				
			 | 
			
			
				- AliyunOSS.asyncDownload(bucketname,objectkey,{"x-oss-process":'xxxx'}).then((e) => { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				283
			 | 
			
			
				+ AliyunOSS.asyncDownload(bucketname,objectkey,{"x-oss-process": 'xxxx'}).then((e) => { 
			 | 
		
	
		
			
			| 
				284
			 | 
			
				284
			 | 
			
			
				     console.log(e) 
			 | 
		
	
		
			
			| 
				285
			 | 
			
				285
			 | 
			
			
				   }).catch((e)=>{ 
			 | 
		
	
		
			
			| 
				286
			 | 
			
				286
			 | 
			
			
				     console.log(e) 
			 |