Skip to content

Commit

Permalink
Round size geometry for Button and RichText components.
Browse files Browse the repository at this point in the history
Reviewed By: cuva

Differential Revision: D6466875

fbshipit-source-id: 62a480411e7d2354a6879917c42bbf0ee96cdadd
  • Loading branch information
iaroslav-pavlov authored and facebook-github-bot committed Dec 7, 2017
1 parent ec2ea58 commit 4034feb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ReactCommon/yoga/yoga/Yoga.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,10 @@ WIN_EXPORT YGConfigRef YGConfigGetDefault(void);
WIN_EXPORT void YGConfigSetContext(const YGConfigRef config, void *context);
WIN_EXPORT void *YGConfigGetContext(const YGConfigRef config);

WIN_EXPORT float YGRoundValueToPixelGrid(
const float value,
const float pointScaleFactor,
const bool forceCeil,
const bool forceFloor);

YG_EXTERN_C_END

0 comments on commit 4034feb

Please sign in to comment.