Fix GIF Disappear when return from background

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 https://github.com/facebook/react-native/pull/7612

Differential Revision: D3481403

fbshipit-source-id: 101bded300f5e34bb53ec6c54a40eb5aece22fba
This commit is contained in:
wenzhao.yin 2016-06-24 03:18:23 -07:00 committed by Facebook Github Bot 9
parent 9cb28b9a7e
commit a87c9d5c2c
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ RCT_EXPORT_MODULE()
animation.keyTimes = keyTimes;
animation.values = images;
animation.duration = duration;
animation.removedOnCompletion = NO;
image.reactKeyframeAnimation = animation;
} else {