Skip to content

Commit

Permalink
[ReactNative] LayoutAnimation brevity
Browse files Browse the repository at this point in the history
Summary:
@public

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

Test Plan: D2171336, play with AdsManager pickers.
  • Loading branch information
sahrens committed Jun 26, 2015
1 parent fe7edf0 commit 29e49bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Libraries/Animation/LayoutAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,10 @@ var LayoutAnimation = {
}
};

for (var key in LayoutAnimation.Presets) {
LayoutAnimation[key] = LayoutAnimation.configureNext.bind(
null, LayoutAnimation.Presets[key]
);
}

module.exports = LayoutAnimation;

0 comments on commit 29e49bd

Please sign in to comment.