Skip to content

Commit

Permalink
fix(android): correct default value type for StyleNode
Browse files Browse the repository at this point in the history
  • Loading branch information
iPel authored and hippy-actions[bot] committed Jul 14, 2023
1 parent 95913e4 commit a431df4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void setShadowRadius(float shadowRadius) {
}
}

@HippyControllerProps(name = NodeProps.DIRECTION)
@HippyControllerProps(name = NodeProps.DIRECTION, defaultType = HippyControllerProps.STRING, defaultString = "ltr")
public void setDirection(String direction) {
if (TextUtils.isEmpty(direction)) {
return;
Expand Down Expand Up @@ -144,7 +144,7 @@ public void setOverflow(String overflow) {
}

@SuppressWarnings("SwitchStatementWithTooFewBranches")
@HippyControllerProps(name = NodeProps.DISPLAY)
@HippyControllerProps(name = NodeProps.DISPLAY, defaultType = HippyControllerProps.STRING)
public void setDisplay(String display) {
FlexNodeStyle.Display flexDisplay = FlexNodeStyle.Display.DISPLAY_FLEX;
switch (display) {
Expand Down

0 comments on commit a431df4

Please sign in to comment.