Skip to content

Commit

Permalink
Fix GIF Disappear when return from background
Browse files Browse the repository at this point in the history
Summary:
GIF Image will disappear after press the home button and return back.
Set `removedOnCompletion` to be`false` will fix  all `CAAnimation` disappear like stopping after going into the background.
Closes facebook#7612

Differential Revision: D3481403

fbshipit-source-id: 101bded300f5e34bb53ec6c54a40eb5aece22fba
  • Loading branch information
wenzhao.yin authored and bubblesunyum committed Aug 23, 2016
1 parent 810606a commit 861471b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Image/RCTGIFImageDecoder.m
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ - (RCTImageLoaderCancellationBlock)decodeImageData:(NSData *)imageData
animation.keyTimes = keyTimes;
animation.values = images;
animation.duration = duration;
animation.removedOnCompletion = NO;
image.reactKeyframeAnimation = animation;

} else {
Expand Down

0 comments on commit 861471b

Please sign in to comment.