Skip to content

Commit

Permalink
Modify fontSize style to be able to animate fontSize (facebook#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkrtailor authored and wokalski committed Dec 14, 2017
1 parent 9fe9273 commit a293beb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/js/src/style.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/style.re
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ let color = stringStyle("color");

let fontFamily = stringStyle("fontFamily");

let fontSize = floatStyle("fontSize");
let fontSize = (value) => ("fontSize", encode_float_interpolated_animated(value));

type fontStyle =
| Normal
Expand Down
2 changes: 1 addition & 1 deletion src/style.rei
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ let color: string => styleElement;

let fontFamily: string => styleElement;

let fontSize: float => styleElement;
let fontSize: float_interpolated_animated => styleElement;

type fontStyle =
| Normal
Expand Down

0 comments on commit a293beb

Please sign in to comment.