Browse Source

Change js interface

Ben Hsieh 9 years ago
parent
commit
8a469f5fb6
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/index.js
  2. 1
    1
      src/types.js

+ 1
- 1
src/index.js View File

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

+ 1
- 1
src/types.js View File

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