Florian Rival
433b6bb9c4
Update README
2017-08-17 21:44:58 +02:00
Florian Rival
15ea06d765
Update example according to latest changes in createResizedImage interface
2017-08-17 21:42:32 +02:00
Mark Miyashita
975d9097d3
Support react 16 with react-native 0.47+ ( #96 )
2017-08-12 01:34:19 +01:00
Dmitry Patsura
90ef9daac2
Add Flow support ( #94 )
2017-08-07 09:06:02 +02:00
Sibelius Seraphini
e24f2e8da1
Fix compatibility with RN 0.47 ( #93 )
2017-08-02 18:11: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
Florian Rival
711527e2b4
chore(version): Bump version
2017-05-09 00:05:57 +02:00
Florian Rival
096f281d9e
Fix example to work with the specified React Native version ( #79 )
2017-05-09 00:02:58 +02:00
Florian Rival
d568ed104a
Update minimum React Native version in README
2017-02-26 13:42:17 +01:00
Abe Botros
aef2a9c7d8
Minor Android fixes for empty/failed return paths ( #67 )
...
- Throw exception instead of returning null sourceImage, which avoids
returning pseudo-empty "file:" string to Javascript on failure
- Use constant strings for checking path prefixes
- Cleanup of conditional statements for checking path prefixes
- Additional try-catch statements, contributing more-fine-grained
error messages
Other
- Updated .gitignore to latest React Native template
- Updated Android gradle scripts
- Updated package.json's in root and in example to point to
correct react/react-native versions, and to use local code
for this library directly in the example app
2017-02-10 11:21:55 +01:00
William Candillon
d762433fe8
Create index.d.ts ( #64 )
2017-01-30 14:06:30 +01:00
Kevin Cooper
2680941ae0
Add note to README explaining `file:` prefix ( #62 )
...
Resolves #50 .
2017-01-20 19:33:23 +01:00
Florian Rival
37642cf4f3
chore(version): Bump version
...
Also update README to support RN 0.40 and older
Latest version is supported only by React Native 0.40+
2017-01-15 22:58:02 +01:00
Antti Ala-Ilkka
d8ddf31bd2
Support react-native > 0.40
2017-01-15 22:58:02 +01:00
Florian Rival
fd4ec2f814
Fix README
2016-11-05 22:31:36 +01:00
Florian Rival
28f81335cc
chore(version): Bump version
2016-11-05 22:27:04 +01:00
Ian Grayson
8514b33d29
Add podspec file ( #52 )
2016-10-14 21:37:45 +02:00
Chris Fogelklou
8a485bf0a9
Add support for base64 formatted Uri strings on Android. ( #47 )
2016-09-22 08:18:06 +02:00
cfogelklou
af2a09e1d8
Add basic support for rotation on iOS ( #46 )
2016-09-20 17:08:27 +02:00
Lam Ng
8bb52ccf8d
Fix readme ( #45 )
...
* fix install guide
* install guide < 0.29.2
* remove android settings.gradle
2016-09-16 17:51:06 +02:00
Florian Rival
bf82709719
chore(version): Bump version
2016-09-12 19:59:23 +02:00
Luke Fanning
9b3d0fd29b
Add support for PNG compression on iOS ( #43 )
2016-09-12 19:57:49 +02:00
Florian Rival
1f4514937b
Add link to react-native-numberpicker-dialog
2016-09-09 14:22:51 +03:00
Florian Rival
6a28444db9
chore(version): Bump version
2016-09-07 08:56:45 +03:00
Andrew Shini
ab1a39bf54
Always rotate the image with the proper up orientation on Android ( #42 )
2016-09-04 10:20:00 +02:00
Florian Rival
fff95be7c2
chore(version): Bump version
2016-08-26 16:48:51 +02:00
Steven Scaffidi
8e9adf7a13
Get rid of deprecation warning on iOS. ( #38 )
2016-08-24 00:24:30 +02:00
Florian Rival
ad4a4070eb
Upgrade the example to react-native 0.31
2016-08-21 21:40:20 +02:00
Florian Rival
51176d697a
Bump version
2016-08-21 21:17:51 +02:00
Florian Rival
edad5c3064
refactor(android): Refactor various part of ImageResizer
2016-08-21 20:36:41 +02:00
Florian Rival
442627bd37
refactor(android): Remove useless arguments, fix typo and style
2016-08-21 20:07:05 +02:00
Florian Rival
e8c3e1b128
chore(commitizen): Make the repository Commitizen friendly
2016-08-21 20:06:05 +02:00
npomfret
83bb4bbd21
reduced memory footprint by using inSampleSize
2016-08-18 12:02:57 +01:00
Benjamin Michel
d5de778778
bump version to 0.0.7 ( #28 )
2016-08-05 16:29:45 +02:00
Benjamin Michel
07a0004895
Simplify readme ( #27 )
2016-08-05 14:56:54 +02:00
zhi
f24bd5e425
Fix memory leaks and don't rotate unless necessary on Android ( #25 )
...
* fixed memory leakes
* rotate only if necessary
2016-08-03 16:02:59 +02:00
Kristoffer K
3b8d1c1940
Output path fix + orientation fix ( #20 )
...
* rotateImage function rewrite
* fix recycle
* output path fix
* only pass bitmap to functions
* Orientation fix
2016-07-17 21:43:11 +02:00
Florian Rival
50ea225665
Add links to other BAM open-source repositories
2016-07-06 20:35:06 +02:00
Almouro
a12ad6d188
Bump version
2016-06-30 19:11:50 +02:00
Alexandre Moureaux
0a15392e0a
Add example to npmignore ( #18 )
2016-06-30 19:08:05 +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
ac2a1728f0
Bump version
2016-06-27 20:57:14 +02:00
Florian Rival
65a83fdfea
Merge pull request #14 from bamlab/fix/ios-deployment-target
...
Change iOS Deployment Target to iOS 7
2016-06-18 11:13:30 +02:00
Florian Rival
863736193e
Change iOS Deployment Target to iOS 7
2016-06-16 14:05:21 +02:00
Florian Rival
640ca399b9
Bump version
2016-06-14 12:28:52 +02:00
Florian Rival
b664dfe510
Fix portrait image resizing on Android
2016-06-14 12:22:49 +02:00
Florian Rival
d0ffb34194
Bump version
2016-05-16 13:09:51 +02:00
Florian Rival
568ff6e5f5
Add example app
2016-05-16 13:06:14 +02:00
Florian Rival
d6c96d6273
Merge pull request #8 from timzaak/supportFileContentUri
...
Fix #6 and #7
2016-05-16 12:50:04 +02:00