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 zealotchen0 committed Aug 7, 2023
1 parent 2afda7f commit dfe30bf
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 dfe30bf

Please sign in to comment.