mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 05:34:15 +00: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:
parent
fe7edf0860
commit
29e49bdb91
@ -114,4 +114,10 @@ var LayoutAnimation = {
|
||||
}
|
||||
};
|
||||
|
||||
for (var key in LayoutAnimation.Presets) {
|
||||
LayoutAnimation[key] = LayoutAnimation.configureNext.bind(
|
||||
null, LayoutAnimation.Presets[key]
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = LayoutAnimation;
|
||||
|
Loading…
x
Reference in New Issue
Block a user