mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 23:24:06 +08:00
[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:
@@ -114,4 +114,10 @@ var LayoutAnimation = {
|
||||
}
|
||||
};
|
||||
|
||||
for (var key in LayoutAnimation.Presets) {
|
||||
LayoutAnimation[key] = LayoutAnimation.configureNext.bind(
|
||||
null, LayoutAnimation.Presets[key]
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = LayoutAnimation;
|
||||
|
||||
Reference in New Issue
Block a user