Task :baronha_react-native-photo-editor:compileDebugKotlin FAILED
change this file works for me /@baronha/react-native-photo-editor/android/src/main/java/com/reactnativephotoeditor
private val mActivityEventListener: ActivityEventListener = object : BaseActivityEventListener() { override fun onActivityResult(activity: Activity, requestCode: Int, resultCode: Int, intent: Intent?) { if (requestCode == EDIT_SUCCESSFUL) { when (resultCode) { ResponseCode.RESULT_OK -> { val path = intent?.getStringExtra("path") promise?.resolve("file://$path") } ResponseCode.RESULT_CANCELED -> { promise?.reject("USER_CANCELLED", "User has cancelled", null) } ResponseCode.LOAD_IMAGE_FAILED -> { val path = intent?.getStringExtra("path") promise?.reject("LOAD_IMAGE_FAILED", "Load image failed: $path", null) }
}
}
}
}
Thanks for the suggestion @huynhuchuy2001, i made a pull request to add these changes to the repo.