question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GIFs are being sped up on iPhone 13 pro max.

See original GitHub issue

Description

Rendering GIFs on iPhone 13 pro max are being played super fast. I have tried to limit the frame rate on the gif itself to 30 fps or even 60 fps, however on iPhone 13 it still plays too fast. The gifs are being rendered on a Image inside a flatlist.

Version

0.63.4

Output of npx react-native info

System: OS: macOS 12.2 CPU: (8) arm64 Apple M1 Memory: 113.09 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.0 - /usr/local/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 8.1.0 - /usr/local/bin/npm Watchman: 2022.01.24.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.2 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild Languages: Java: Not Found Python: 2.7.18 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.4 => 0.63.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Create a flatlist with a gif being rendered with the Image tag.

Expected behavior

play gif on normal speed.

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:11
  • Comments:13

github_iconTop GitHub Comments

2reactions
blueC1023commented, Jun 20, 2022

RCTUIImageViewAnimated.m NSTimeInterval duration = displayLink.duration * displayLink.frameInterval; => NSTimeInterval duration = displayLink.targetTimestamp - displayLink.timestamp;

0reactions
cq0702commented, Oct 31, 2022

RCTUIImageViewAnimated.m NSTimeInterval duration = displayLink.duration * displayLink.frameInterval; => NSTimeInterval duration = displayLink.targetTimestamp - displayLink.timestamp;

Confirmed this change is already on react-native 0.68.2. But the GIFs are still having speed up issue on IOS.

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gifs play too fast iPhone 13 Max Pro - Apple Community
Gifs play too fast iPhone 13 Max Pro. This happens across all apps-Facebook, Voxer, texting. Very frustrating. Is there a fix for this?...
Read more >
GIFs play at super fast speed. Happens in comments as well ...
Giphy seems to be the host I have the issue with most often. ... Iphone 13 pro max fast gifs issue with facebook,...
Read more >
10 Tips to Fix GIFs Not Working on iPhone (iOS 16 Supported)
Why Won't GIFs Work on My iPhone? · GIFs may not loading or showing up due to poor internet connection. · GIFs on...
Read more >
Some iPhone 13 Pro animations affected by an issue that will ...
One reason is that developers will need to update their apps to declare that they use the higher refresh rate. This can be...
Read more >
How to Easily Edit GIF Speed on Desktop, Android & iOS
ImgPlay is a popular GIF creation tool for iOS users. It has flexible GIF making tools and rich media resources, allowing you to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found