Open l1m2p3 opened 8 months ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.72.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Can we try if this still happens on 0.73?
Can we try if this still happens on 0.73?
Yeah. I updated RN and Expo to use RN v0.73.1, but both iOS and Android can still repro the issue.
on android, .gif
cannot play in 0.73.6
no matter how resizeMode
is.
on android,
.gif
cannot play in0.73.6
no matter howresizeMode
is.
That could be a different issue. See if you missed this in your Android project's .gradle file? https://reactnative.dev/docs/0.73/image#gif-and-webp-support-on-android
on android,
.gif
cannot play in0.73.6
no matter howresizeMode
is.
yes, gif is not working on 0.73.6
Description
<Image />
cannot render GIF correctly when (Android) or after (iOS) settingresizeMode
to"repeat"
.The issue on iOS and Android are different:
resizeMode
is set to"repeat"
1.2. the second issue is<Image />
cannot get out of"repeat"
mode after settingresizeMode
to it.<Image />
cannot render"repeat"
mode correctly -- there GIF will not "repeat", but shrink to top left corner insteadJPG and PNG files don't have any issue.
Steps to reproduce
Setup: create a vanilla React Native app, add a
Image
component in it. Or try the linked Expo Snack belowresizeMode
is set to "repeat" 2.2. on iOS, GIF cannot recover from "repeat" after settingresizeMode
to "repeat" and then other value (e.g. "cover") 2.2. on Android, GIF cannot "repeat", but shrinks to the top left corner insteadReact Native Version
0.72.6
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@l1m2p3/image-gif-resizemode-bug
Screenshots and Videos
iOS:
https://github.com/facebook/react-native/assets/6405712/9d2795bd-79f1-444e-8815-228db3446855
Android:
https://github.com/facebook/react-native/assets/6405712/ca4e803e-56bc-4f58-9fb6-77bfa03279eb