mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
LayoutAnimations: call onSuccess, onFailure callbacks
Summary: Hook up onSuccess and onFailure callbacks to LayoutAnimations. Note that in non-Fabric RN, onSuccess is not known to work in Android. I could not find any uses of onFailure and it's not documented, so for now, it is only called if the setup of the animation fails. Changelog: [Internal] Reviewed By: shergin Differential Revision: D22889352 fbshipit-source-id: 4306debb350388dd2b7a2cbfe295eb99723988e2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
777957c6fb
commit
e3302eeeab
@@ -285,7 +285,8 @@ void Binding::installFabricUIManager(
|
||||
}
|
||||
|
||||
if (enableLayoutAnimations) {
|
||||
animationDriver_ = std::make_shared<LayoutAnimationDriver>(this);
|
||||
animationDriver_ =
|
||||
std::make_shared<LayoutAnimationDriver>(runtimeExecutor, this);
|
||||
}
|
||||
scheduler_ = std::make_shared<Scheduler>(
|
||||
toolbox, (animationDriver_ ? animationDriver_.get() : nullptr), this);
|
||||
|
||||
Reference in New Issue
Block a user