mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 04:24:15 +00:00
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:
parent
9cb28b9a7e
commit
a87c9d5c2c
@ -91,6 +91,7 @@ RCT_EXPORT_MODULE()
|
|||||||
animation.keyTimes = keyTimes;
|
animation.keyTimes = keyTimes;
|
||||||
animation.values = images;
|
animation.values = images;
|
||||||
animation.duration = duration;
|
animation.duration = duration;
|
||||||
|
animation.removedOnCompletion = NO;
|
||||||
image.reactKeyframeAnimation = animation;
|
image.reactKeyframeAnimation = animation;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user