Skip to content

Commit

Permalink
fix: 🐛 Return Cache Size Exactly (Width + Height) for Android
Browse files Browse the repository at this point in the history
Discovered an issue regarding returning width and height dimensions
after the image has been cached on Android
  • Loading branch information
tconns committed May 13, 2024
1 parent 1c2bebe commit 81a7e68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
onSuccess = { result ->
val event = Arguments.createMap()
event.putString("source", url)
event.putString("height", view.height.toString())
event.putString("width", view.width.toString())
event.putString("height", result.intrinsicHeight.toString())
event.putString("width", result.intrinsicWidth.toString())
val reactContext = view.context as ReactContext
reactContext
.getJSModule(RCTEventEmitter::class.java)
Expand Down

0 comments on commit 81a7e68

Please sign in to comment.