Browse Source

Modify js interface

Ben Hsieh 8 years ago
parent
commit
e48d86504c
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/fs.js

+ 3
- 3
src/fs.js View File

152
       if(err)
152
       if(err)
153
         reject(err)
153
         reject(err)
154
       else
154
       else
155
-        resolve(res)
155
+        resolve()
156
     })
156
     })
157
   })
157
   })
158
 
158
 
216
 
216
 
217
   return new Promise((resolve, reject) => {
217
   return new Promise((resolve, reject) => {
218
     try {
218
     try {
219
-      RNFetchBlob.exists(path, (exist, isDir) => {
220
-        resolve(exist, isDir)
219
+      RNFetchBlob.exists(path, (exist) => {
220
+        resolve(exist)
221
       })
221
       })
222
     } catch(err) {
222
     } catch(err) {
223
       reject(err)
223
       reject(err)