Skip to content

Commit

Permalink
Update layout2-layoutspec-types.md (TextureGroup#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 bernieperez committed Apr 25, 2018
1 parent 72f31de commit 38950c9
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 38950c9

Please sign in to comment.