Skip to content

Instantly share code, notes, and snippets.

@adamjernst
Last active August 29, 2015 14:16
Show Gist options
  • Save adamjernst/27884857a186168b7c68 to your computer and use it in GitHub Desktop.
Save adamjernst/27884857a186168b7c68 to your computer and use it in GitHub Desktop.
@implementation FBStoryComponent
+ (instancetype)newWithStory:(FBStory *)story
{
return [self newWithComponent:
[FBStackLayoutComponent
newWithView:{}
size:{}
style:{.alignItems = FBStackLayoutAlignItemsStretch}
children:{
{[FBHeaderComponent newWithStory:story]},
{[FBMessageComponent newWithStory:story]},
{[FBAttachmentComponent newWithStory:story]},
{[FBLikeBarComponent newWithStory:story]},
}]];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment