DylanVann / react-native-fast-image

🚩 FastImage, performant React Native image component.
MIT License
8.17k stars 1.5k forks source link

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

Open virginiab10 opened 1 year ago

virginiab10 commented 1 year ago

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

eminsr commented 1 year ago

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

devtyty commented 1 year ago

Metoo

jonohodgson commented 1 year ago

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

YeldosQoja commented 1 year ago

Same problem

bolan9999 commented 1 year ago

any update?

greenafrican commented 1 year ago

same issue

shahzore-qureshi commented 1 year ago

Same issue

qd-wl commented 1 year ago

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