Skip to content

Commit

Permalink
Merge pull request #34 from tconns/fix-android-cache-return-size
Browse files Browse the repository at this point in the history
fix: 🐛 Return Cache Size Exactly (Width + Height) for Android
  • Loading branch information
gtokman authored May 13, 2024
2 parents 1c2bebe + 81a7e68 commit af4113d
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 af4113d

Please sign in to comment.