Skip to content

Commit 4014aa4

Browse files
zeyapfacebook-github-bot
authored andcommitted
correctly pass down isLooping in parallel animation (facebook#46429)
Summary: Pull Request resolved: facebook#46429 Right now if I create a `Animated.loop(Animated.parallel(...))`, `config.__isLooping` for nested animations are not `true`. The reason is Animated.parallel doesn't pass down `isLooping`. This change is fixing that. Changelog: [General][Fixed] - correctly pass down isLooping in parallel animation Reviewed By: cipolleschi Differential Revision: D62473189 fbshipit-source-id: 405dd36aa008cc965599ff82333b5552df1eb41f
1 parent 94489d5 commit 4014aa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/Libraries/Animated/AnimatedImplementation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ const parallel = function (
373373
const stopTogether = !(config && config.stopTogether === false);
374374

375375
const result = {
376-
start: function (callback?: ?EndCallback) {
376+
start: function (callback?: ?EndCallback, isLooping?: boolean) {
377377
if (doneCount === animations.length) {
378378
callback && callback({finished: true});
379379
return;
@@ -397,7 +397,7 @@ const parallel = function (
397397
if (!animation) {
398398
cb({finished: true});
399399
} else {
400-
animation.start(cb);
400+
animation.start(cb, isLooping);
401401
}
402402
});
403403
},

0 commit comments

Comments
 (0)