Commit Graph

13 Commits

Author SHA1 Message Date
Michał Pierzchała 6fd88e7666 Use RCTBridgeModule.h instead of RCTBridge.h (#109)
Looks like `RCTBridge.h` got deprecated and official docs use `#import <React/RCTBridge.h>` form anyway. This also makes this lib usable under (at least) RN 0.48
2017-10-15 23:19:46 +02:00
Umberto Lentini b92d8de42a Fix error reporting, path handling and extension naming on iOS (#90)
* `saveFile` used to return always `YES`, now it returns whether or not the save has been saved.
* `generateFilePath` didn’t do any check about the path. Now it creates the in the app directory. If for some reason it fails, it throws an Exception.
* `saveFile` can handle png extension and path issues. A bug on a `nil` fileSize has been fixed.
2017-07-20 17:19:24 +02:00
Marco Cimmino 544dd9d473 Unify returned value between Android and iOS implementation, (#83)
previously Android implementation worked differently and to the returned
absolute path a 'file:' is prepended.

This different behaviour may causes issues/bugs when handling the response from an
unified code base point of view and also the returned uri on the Android native code
is not generated properly using native functions to do so.

This patch fixes this incoherence, but also extends the returned value to add:
absolute path, file name, file size and the uri.
Refactored Android code to make it easier to read and more robust to
case sensitive file names.
2017-07-18 23:05:26 +02:00
Antti Ala-Ilkka d8ddf31bd2 Support react-native > 0.40 2017-01-15 22:58:02 +01:00
cfogelklou af2a09e1d8 Add basic support for rotation on iOS (#46) 2016-09-20 17:08:27 +02:00
Luke Fanning 9b3d0fd29b Add support for PNG compression on iOS (#43) 2016-09-12 19:57:49 +02:00
Steven Scaffidi 8e9adf7a13 Get rid of deprecation warning on iOS. (#38) 2016-08-24 00:24:30 +02:00
superAndrew af9f77d965 Add outputPath to options (#16)
* Add outputPath for android

* Add outputPath for ios

* Update readme

* Move outputPath to the end

* Update readme
2016-06-30 19:07:42 +02:00
Florian Rival 863736193e Change iOS Deployment Target to iOS 7 2016-06-16 14:05:21 +02:00
timzaak 5f0bb88cef fix things @Almouro has mentioned, thanks @Almouro 2016-05-14 11:18:48 +08:00
timzaak 452f4fafdc avoid double dot 2016-05-12 10:50:25 +08:00
timzaak cdde0a4d0a reslove #7 2016-05-11 22:34:42 +08:00
Almouro 125365ec6b Handle images from RCT Image store
On iOS, when cropping an image with ImageEditor, it returns an uri starting with rct-image-store which could not be read by this module
2016-03-17 19:21:03 +01:00