Skip to content

Commit 8459403

Browse files
authored
Merge pull request #558 from itinance/fix-missing-parameter-android-movefile-writefile
fixed missing parameter in movefile and writefile
2 parents 35c8eff + f72543c commit 8459403

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/java/com/rnfs/RNFSManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private static byte[] getInputStreamBytes(InputStream inputStream) throws IOExce
143143
}
144144

145145
@ReactMethod
146-
public void writeFile(String filepath, String base64Content, Promise promise) {
146+
public void writeFile(String filepath, String base64Content, ReadableMap options, Promise promise) {
147147
try {
148148
byte[] bytes = Base64.decode(base64Content, Base64.DEFAULT);
149149

@@ -316,7 +316,7 @@ public void hash(String filepath, String algorithm, Promise promise) {
316316
}
317317

318318
@ReactMethod
319-
public void moveFile(String filepath, String destPath, Promise promise) {
319+
public void moveFile(String filepath, String destPath, ReadableMap options, Promise promise) {
320320
try {
321321
File inFile = new File(filepath);
322322

0 commit comments

Comments
 (0)