jeanpan / react-native-camera-roll-picker

📷 A React Native component providing images selection from camera roll
https://www.npmjs.com/package/react-native-camera-roll-picker
MIT License
422 stars 176 forks source link

GIFs not animating when importing uri #44

Open arminsal1 opened 7 years ago

arminsal1 commented 7 years ago

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

AlexKotov commented 7 years ago

same issue react native 0.44.0

srameshr commented 6 years ago

@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!

AlexKotov commented 6 years ago

@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

12343954 commented 6 years ago

I solute it !just temporary solution

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