Skip to content

Commit 4d16d7c

Browse files
committed
Add version 2.4.1
1 parent b07e766 commit 4d16d7c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.4.1]
2+
3+
### Fixed
4+
5+
* [Android] Fixed wrong behavior of `ImageExportType` where `DATA_URL` and `FILE_URL` were swapped.
6+
17
## [2.4.0]
28

39
### Changed

android/src/main/java/ly/img/react_native/pesdk/RNPhotoEditorSDKModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ class RNPhotoEditorSDKModule(val reactContext: ReactApplicationContext) : ReactC
102102
currentPromise?.resolve(
103103
reactMap(
104104
"image" to when (currentConfig?.export?.image?.exportType) {
105-
ImageExportType.FILE_URL -> resultPath?.let {
105+
ImageExportType.DATA_URL -> resultPath?.let {
106106
val imageSource = ImageSource.create(it)
107107
"data:${imageSource.imageFormat.mimeType};base64,${imageSource.asBase64}"
108108
}
109-
ImageExportType.DATA_URL -> resultPath?.toString()
109+
ImageExportType.FILE_URL -> resultPath?.toString()
110110
else -> resultPath?.toString()
111111
},
112112
"hasChanges" to (sourcePath?.path != resultPath?.path),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-photoeditorsdk",
33
"title": "React Native module for PhotoEditor SDK",
4-
"version": "2.4.0",
4+
"version": "2.4.1",
55
"description": "A React Native module for PhotoEditor SDK. Integrate the photo editor into your own HTML5, iOS or Android app - in minutes!",
66
"main": "index.js",
77
"typings": "index.d.ts",

0 commit comments

Comments
 (0)