Expo SDK 38 cross-platform .gif support

Please provide the following:

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): Android/iOS

Hi, I want to display .gif in my app. I just tried the following and it did work on android/ios simulator and my two android devices:

<Image 
       source={{uri: 'https://media.giphy.com/media/xUOxf34uHq8VolxF7y/giphy.gif'}} 
       style={{width: 300, height: 300}} />

But I have read that .gif was not really supported in the past and that special packages were needed.

Can I check somehow if .gif rendering is supported? Can I provide fallback images?

Hey @denniske1001,

There’s no way to check for gif support at runtime or provide fallback images with React Native’s Image component.

Cheers,
Adam

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.