react-native-fast-image icon indicating copy to clipboard operation
react-native-fast-image copied to clipboard

onLoad() prop returns wrong values in 'height' and 'width' on Android

Open virginiab10 opened this issue 1 year ago β€’ 8 comments

Describe the bug I need to get the height and width of the image being loaded to do some math and display a full screen view of the image. With react-native 0.68 this worked fine, but now the values ​​in Android are wrong so the image looks cut off.

Dependency versions

  • React Native version: 0.69.0
  • React version: 18.0.0
  • React Native Fast Image version: 8.6.3

virginiab10 avatar Nov 10 '22 19:11 virginiab10

I am getting the same bug with newer react-native version.

Dependency versions

React Native version: 0.70.5 React version: 18.1.0 React Native Fast Image version: 8.6.3

eminsr avatar Nov 11 '22 08:11 eminsr

Metoo

devtyty avatar Nov 21 '22 07:11 devtyty

Same here

Dependency versions React Native version: 0.70.6 React version: 18.1.0 React Native Fast Image version: 8.6.3

react-native Image.getSize returns the correct height and width

jonohodgson avatar Nov 28 '22 13:11 jonohodgson

Same problem

YeldosQoja avatar Dec 23 '22 06:12 YeldosQoja

any update?

bolan9999 avatar Feb 11 '23 11:02 bolan9999

same issue

greenafrican avatar Mar 06 '23 10:03 greenafrican

Same issue

shahzore-qureshi avatar Mar 30 '23 12:03 shahzore-qureshi

set resizeMode 'contain', it work fine. like this: resizeMode={'contain'}

qd-wl avatar May 20 '23 02:05 qd-wl