瀏覽代碼

Change js interface

Ben Hsieh 9 年之前
父節點
當前提交
8a469f5fb6
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      src/index.js
  2. 1
    1
      src/types.js

+ 1
- 1
src/index.js 查看文件

@@ -22,7 +22,7 @@ const emitter = DeviceEventEmitter
22 22
 const RNFetchBlob:RNFetchBlobNative = NativeModules.RNFetchBlob
23 23
 
24 24
 emitter.addListener("RNFetchBlobMessage", (e) => {
25
-  console.log(e)
25
+
26 26
   if(e.event === 'warn') {
27 27
     console.warn(e.detail)
28 28
   }

+ 1
- 1
src/types.js 查看文件

@@ -29,7 +29,7 @@ type RNFetchBlobNative = {
29 29
   // open file stream
30 30
   readStream : (
31 31
     path:string,
32
-    encode: 'utf8' | 'ascii' | 'base64'
32
+    encode:'utf8' | 'ascii' | 'base64'
33 33
   ) => void,
34 34
   // get system folders
35 35
   getEnvironmentDirs : (dirs:any) => void,