From b262391854b033515b8a4a80fc6ee437ef54a1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hagen=20H=C3=BCbel?= Date: Fri, 28 Apr 2017 10:52:48 +0200 Subject: [PATCH] Fixes 'mtime' for Android, #287 --- android/src/main/java/com/rnfs/RNFSManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/rnfs/RNFSManager.java b/android/src/main/java/com/rnfs/RNFSManager.java index 5d00c00..79a2c52 100644 --- a/android/src/main/java/com/rnfs/RNFSManager.java +++ b/android/src/main/java/com/rnfs/RNFSManager.java @@ -259,7 +259,7 @@ public class RNFSManager extends ReactContextBaseJavaModule { for (File childFile : files) { WritableMap fileMap = Arguments.createMap(); - fileMap.putString("mtime", childFile.lastModified()); + fileMap.putInt("mtime", (int)childFile.lastModified()); fileMap.putString("name", childFile.getName()); fileMap.putString("path", childFile.getAbsolutePath()); fileMap.putInt("size", (int)childFile.length());