Fixed null argument errors for timers and layout animations

This commit is contained in:
Nick Lockwood
2015-08-01 07:44:05 -01:00
parent 3e79838a31
commit 95d1fd142e
7 changed files with 16 additions and 15 deletions

View File

@@ -69,9 +69,11 @@ type Config = {
delete?: Anim;
}
function configureNext(config: Config, onAnimationDidEnd?: Function, onError?: Function) {
function configureNext(config: Config, onAnimationDidEnd?: Function) {
configChecker({config}, 'config', 'LayoutAnimation.configureNext');
RCTUIManager.configureNextLayoutAnimation(config, onAnimationDidEnd, onError);
RCTUIManager.configureNextLayoutAnimation(
config, onAnimationDidEnd || function() {}, function() { /* unused */ }
);
}
function create(duration: number, type, creationProp): Config {