Commit Graph

61 Commits

Author SHA1 Message Date
Hagen Hübel a5ee52f5c8 Fixed 'RCTJSONStringify() encountered the following error: Invalid type in JSON write (__NSTaggedDate)' 2017-04-27 13:07:19 +02:00
Albert Martin b139b5d58b Add created and modified dates to `ReadDirItem` 2017-04-26 09:46:56 -05:00
Ben Clayton 065acc400f Android assets support (#83)
New Android-specific asset access methods:

* 'readFileAssets' - read file in assets as string
* 'readDirAssets' - read contents of a directory in assets
* 'existsAssets' - true/false if file does or does not exist in assets
* 'copyFileAssets' - copy a file from assets to a writable directory (e.g. SD Card)
2016-12-06 13:04:09 +00:00
Eric Samelson e4da23d986 Add hash method for both iOS and Android; update README.md 2016-11-16 13:37:33 -08:00
Chris Dell 0b47ced162 Fix getExternalStorageDirectory 2016-08-10 20:07:04 +01:00
Chris Dell 7487ff2451 Merge branch 'master' of github.com:johanneslumpe/react-native-fs 2016-08-10 19:57:37 +01:00
Chris Dell 29f58f1560 Removed NS prefixes to avoid confusion 2016-08-10 19:53:24 +01:00
Chris Dell bd63b34415 Merge pull request #121 from superandrew213/master
Add ExternalStorageDirectoryPath
2016-08-09 22:40:23 +01:00
Kyle Corbitt 9498dbfd93 move-file fallback 2016-08-09 13:37:31 -07:00
Chris Dell 3564b6b22e Removed attributes, cleaned up README 2016-08-02 20:15:06 +01:00
Chris Dell 03a61b681b stopDownload rejects promise 2016-08-02 19:38:22 +01:00
Chris Dell 75a25f693a Android passing tests 2016-08-01 19:36:33 +01:00
francisco-sanchez-molina 044584e5b7 Add read timeout 2016-07-26 16:43:19 +02:00
Chris Dell b3cef00673 Merge branch 'grabbou-feat/promisify' 2016-07-18 23:15:07 +01:00
Chris Dell 1800bc634a Android fixes 2016-07-18 23:02:45 +01:00
Chris Dell bcecac71af Merge branch 'feat/promisify' of https://github.com/grabbou/react-native-fs into grabbou-feat/promisify 2016-07-18 22:46:13 +01:00
Andrew Shini 838e39d984 Add copyFile 2016-07-03 20:10:24 +10:00
Chris Dell 8e1975a4e1 progressDivider now defaults to 0 2016-06-30 00:14:18 +01:00
Chris Dell 3b7a83e6ee Separate appendFile, added flow types 2016-06-30 00:08:53 +01:00
Benjamin Christau 1dd6da59b2 Update RNFSManager Android file to handle append in the writeFile method. 2016-06-28 14:28:46 +02:00
Andrew Shini e884fc2abc Add ExternalStorageDirectoryPath 2016-06-17 11:48:16 +10:00
Chris Dell 132fb4d6a0 Merge branch 'master' of https://github.com/kitolog/react-native-fs into kitolog-master 2016-06-08 17:52:08 +01:00
Chris Dell 7743cc116a Android redirect disconnect 2016-06-04 00:28:46 +01:00
Chris Dell 2627828193 Merge pull request #86 from prha/redirect
Add support for following 301/302 redirects on android
2016-06-04 00:17:46 +01:00
Chris Dell 9575ef9c27 downloadFile supports headers 2016-06-03 23:59:08 +01:00
Chris Dell be45203b26 Changed downloadFile to use options, preparation for headers 2016-06-02 00:53:22 +01:00
kitolog 1bc9481a47 Added progressDivider 2016-05-31 12:46:03 +03:00
Nikita 39e356d1f8 Added Log import 2016-05-30 18:34:55 +03:00
Nikita 4cff926bd6 Emit every 10% of downloading progress 2016-05-30 18:33:48 +03:00
Mike Grabowski 9b053e1ad1 Use React Native from node_modules
It wasn't probably a desired behaviour. Since maven contains outdated React, that's why it was throwing that the DeviceEventEmitter is not there etc. After changing it to use the node_modules one, it works again and all classes that are available in the currently installed React are working.
2016-05-20 06:27:22 +02:00
Johannes Lumpe c432a6bf7e Merge pull request #91 from grabbou/feat/optimise-subs
Fixes #90
2016-05-19 14:02:40 +03:00
Mike Grabowski 21d635deae Hotfix semicolon 2016-05-19 09:39:19 +02:00
Mike Grabowski bdeda5ef36 Fixes 2016-05-14 23:42:57 +02:00
Mike Grabowski f90ec05119 Initial commit 2016-05-14 23:19:27 +02:00
Mike Grabowski 3285c3d3e8 Do not return code 2016-05-14 23:14:22 +02:00
Mike Grabowski fac71d5ba6 Fix ex being undefined 2016-05-14 22:59:30 +02:00
Mike Grabowski ed09935d74 Use react from node_modules 2016-05-14 22:57:05 +02:00
Mike Grabowski 7ac79c5384 Fix writeFile resolve argument 2016-05-14 22:55:08 +02:00
Mike Grabowski 3f0f291002 Android part - untested yet 2016-05-14 22:53:51 +02:00
Phil Rha 5d1a201a0c Add support for following 301/302 redirects on android 2016-05-06 15:16:06 -07:00
Chris Dell 01d43a011a getFSInfo changed to use JS serializable WritableMap instead of HashMap 2016-05-03 21:35:14 +01:00
Kyle Corbitt 33d637e42e new getFSInfo command 2016-05-03 21:25:33 +01:00
Chris Dell c764d1586b Merge pull request #66 from veeloinc/master
Give android access to getExternalFilesDir
2016-04-13 16:39:24 +01:00
Chris Dell 23a85af821 Merge pull request #68 from charpeni/jobId-progress-callback
Add property jobId to progressCallback
2016-04-13 16:37:59 +01:00
Alex Rothberg a9ec918310 Call HttpURLConnection::disconnect when done reading response 2016-04-12 10:53:21 -04:00
Nicolas Charpentier 8a20d6ff08 Add property jobId to progressCallback 2016-04-07 15:29:36 -04:00
Martin Chase a063f23ed9 connected ExternalDirectoryPath constant to getExternalFilesDir (null for iOS) 2016-03-31 16:16:45 -07:00
Mike Corbin f5f0521d65 downloadFile: avoid connecting twice for each download on Android
A connection already exists to fetch HTTP headers, so use that to complete the
download instead of making a second connection.
2016-03-19 08:12:06 +00:00
Chris Dell 65e81a07fe Merge pull request #48 from iwater/master
add exist method
2016-03-17 19:35:05 +00:00
iwater f3dd33c003 rename exist to exists 2016-01-29 02:20:02 +08:00