Skip to content

Commit

Permalink
Update layout2-layoutspec-types.md (#608)
Browse files Browse the repository at this point in the history
Objective-C code sample was still showing old syntax:
spacer.flexGrow = true;
I have updated to new one:
spacer.style.flexGrow = true;
  • Loading branch information
olcayertas authored and garrettmoon committed Oct 9, 2017
1 parent 4a203db commit 550da24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_docs/layout2-layoutspec-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ Another use of `ASLayoutSpec` is to be used as a spacer in a `ASStackLayoutSpec`
...
// ASLayoutSpec as spacer
ASLayoutSpec *spacer = [[ASLayoutSpec alloc] init];
spacer.flexGrow = true;
spacer.style.flexGrow = true;

stack.children = @[imageNode, spacer, textNode];
...
Expand Down

0 comments on commit 550da24

Please sign in to comment.