Skip to content

Commit

Permalink
Merge pull request #558 from itinance/fix-missing-parameter-android-m…
Browse files Browse the repository at this point in the history
…ovefile-writefile

fixed missing parameter in movefile and writefile
  • Loading branch information
itinance authored Sep 27, 2018
2 parents 35c8eff + f72543c commit 8459403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/src/main/java/com/rnfs/RNFSManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private static byte[] getInputStreamBytes(InputStream inputStream) throws IOExce
}

@ReactMethod
public void writeFile(String filepath, String base64Content, Promise promise) {
public void writeFile(String filepath, String base64Content, ReadableMap options, Promise promise) {
try {
byte[] bytes = Base64.decode(base64Content, Base64.DEFAULT);

Expand Down Expand Up @@ -316,7 +316,7 @@ public void hash(String filepath, String algorithm, Promise promise) {
}

@ReactMethod
public void moveFile(String filepath, String destPath, Promise promise) {
public void moveFile(String filepath, String destPath, ReadableMap options, Promise promise) {
try {
File inFile = new File(filepath);

Expand Down

0 comments on commit 8459403

Please sign in to comment.