Use layout padding instead of style padding
Reviewed By: AaaChiuuu Differential Revision: D4377074 fbshipit-source-id: a9abbe58e51399e123328f905b4ea8afe0502e33
This commit is contained in:
parent
8105f76226
commit
ca484fa422
|
@ -595,7 +595,7 @@ public class ReactShadowNode {
|
|||
}
|
||||
|
||||
public final float getPadding(int spacingType) {
|
||||
return mYogaNode.getPadding(YogaEdge.fromInt(spacingType)).value;
|
||||
return mYogaNode.getLayoutPadding(YogaEdge.fromInt(spacingType));
|
||||
}
|
||||
|
||||
public void setDefaultPadding(int spacingType, float padding) {
|
||||
|
|
Loading…
Reference in New Issue