Questions tagged [componentkit]

An open source Objective-C++ view framework for iOS that is heavily inspired by React.

ComponentKit takes a functional, declarative approach to building UI. It was built to power Facebook's News Feed and is now used throughout the Facebook iOS app.

https://github.com/facebook/componentkit

21 questions
0
votes
1 answer

CKComponent handle tap gesture

Is it possible to have an CKComponent without an view to handle a tap gesture? I just found this solution WITH a view: ... + (instancetype)newWithViewModel:(NewsComponentViewModel *)viewModel { CKComponent *comp = ...; return [super …
Onno
  • 35
  • 5
0
votes
2 answers

ComponentKit how push view controllers CKComponentController

Hi just stated to use the ComponentKit library given from facebook and i have been going through all their documentation but i could not find how to use their CKComponentController class. Like how to push a view controller and about the navigation…
Imran Hishaam
  • 141
  • 1
  • 10
0
votes
1 answer

ComponentKit Can't call super newWithView after subclassing CKCompositeComponent

.h file #import "CKCompositeComponent.h" @interface JWTextComponent : CKCompositeComponent - (instancetype)newWithText:(NSString *)text; @end .mm file #import "JWTextComponent.h" @implementation JWTextComponent -…
Jacky Wang
  • 618
  • 7
  • 27
0
votes
1 answer

ComponentKit:CKNetworkImageComponent auto layout to the size of network image

CKNetworkImageComponent will not show if I don't set the size param. I guess when the method is called and image not returned, the size is zero. As I call this method, I don't know the exact size of network image. But when the image returned, I want…
keywind
  • 1,135
  • 14
  • 24
0
votes
1 answer

How do you configure a Component's underlying layer?

For example: how might you set the border width for a CKButtonComponent? When using views directly, you would specify it like this: view.layer.borderWidth = xx
keywind
  • 1,135
  • 14
  • 24
0
votes
1 answer

ComponentKit - How to vertically align components inside a horizontal stack layout

I've just started using ComponentKit and seems really straightforward so far, but having a little trouble with flexbox. How would I go about vertically aligning components inside a horizontal CKStackLayoutComponent? What my first attempt was is to…
1
2