react-native-camera-roll-picker icon indicating copy to clipboard operation
react-native-camera-roll-picker copied to clipboard

GIFs not animating when importing uri

Open arminsal1 opened this issue 7 years ago • 4 comments

I'm trying to display images and gifs in my app on React Native's default Image component, but the uri's from the gifs selected using this library display a static unanimated image rather than the animated gif on the Image component. When I test out the component with a web url of a gif, it animates fine, so it appears to be an issue with how the uri from the camera roll picker

arminsal1 avatar May 24 '17 23:05 arminsal1

same issue react native 0.44.0

AlexKotov avatar Aug 02 '17 11:08 AlexKotov

@arminsal1 @AlexKotov This is an issue. How did you solve it? Its because this library returns an assets-library file as it is without converting to PHAsset. Hence you just get the first frame. Shame!

This library solves this problem: https://github.com/olofd/react-native-photos-framework/ but its just an API and no GUI. We have to build a GUI.

I have request for a feature here: https://github.com/olofd/react-native-photos-framework/issues/71 Please upvote!

srameshr avatar Oct 11 '17 13:10 srameshr

@srameshr Thank u for the info. I don't solve the problem yet. I will solve it in my modification of React Native Camera soon: https://github.com/FishErr/react-native-camera

AlexKotov avatar Mar 15 '18 13:03 AlexKotov

I solute it !just temporary solution

https://github.com/FaridSafi/react-native-gifted-chat/issues/878

12343954 avatar May 30 '18 05:05 12343954