mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 22:42:05 +08:00
Simplify width calculation in RCTText
Summary: getLayoutWidth is the same as right - left, and since we have right and left, we can save a method call. Reviewed By: sriramramani Differential Revision: D3010697
This commit is contained in:
@@ -173,7 +173,7 @@ import com.facebook.react.uimanager.annotations.ReactProp;
|
||||
mDrawCommand = new DrawTextLayout(new BoringLayout(
|
||||
mText,
|
||||
PAINT,
|
||||
(int) getLayoutWidth(),
|
||||
(int) (right - left),
|
||||
mAlignment,
|
||||
mSpacingMult,
|
||||
mSpacingAdd,
|
||||
|
||||
Reference in New Issue
Block a user