[ReactNative] LayoutAnimation brevity

Summary:
@public

Less verbose - now can just do `LayoutAnimation.easeInEaseOut()` instead of
`LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)`

Test Plan: D2171336, play with AdsManager pickers.
This commit is contained in:
Spencer Ahrens 2015-06-26 10:44:43 -07:00
parent fe7edf0860
commit 29e49bdb91

View File

@ -114,4 +114,10 @@ var LayoutAnimation = {
}
};
for (var key in LayoutAnimation.Presets) {
LayoutAnimation[key] = LayoutAnimation.configureNext.bind(
null, LayoutAnimation.Presets[key]
);
}
module.exports = LayoutAnimation;