From 8af7baa2c8aa954bccf1ab18b0240a9413d32d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Hau=C3=9Fmann?= Date: Thu, 22 Aug 2024 15:45:50 +0200 Subject: [PATCH] made the save image and modify exif function public --- android/src/main/java/com/exifmodifier/ExifModifierModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/com/exifmodifier/ExifModifierModule.java b/android/src/main/java/com/exifmodifier/ExifModifierModule.java index 9b8c153..2188271 100644 --- a/android/src/main/java/com/exifmodifier/ExifModifierModule.java +++ b/android/src/main/java/com/exifmodifier/ExifModifierModule.java @@ -44,7 +44,8 @@ public void saveImageWithUserComment(String base64ImageData, String userComment, } } - private void saveImageAndModifyExif(String base64ImageData, Map exifProperties, Promise promise) throws IOException { + @ReactMethod + public void saveImageAndModifyExif(String base64ImageData, Map exifProperties, Promise promise) throws IOException { Context context = getReactApplicationContext(); // Decode the base64 string to a bitmap