facebook / componentkit

A React-inspired view framework for iOS.
http://www.componentkit.org/
Other
5.76k stars 587 forks source link

Conceptual - ComponentKit for general use? #4

Closed mrjjwright closed 9 years ago

mrjjwright commented 9 years ago

There is this section in the docs:

Interfaces that aren't lists or tables aren't ideally suited to ComponentKit since it is optimized to work well with a UICollectionView.

That was a bit surprising and I guess it means that ComponentKit was designed for the NewsFeed and other feeds within Facebook. That being said, does that mean you all use the normal imperative, mutative iOS APIs for other parts of the FB app or some other technology that isn't open sourced? Is ComponentKit not suited for just laying out a simple UIView e.g.?

natansh commented 9 years ago

@mrjjwright Check out CKComponentHostingView to use it in a standalone context. The point is that the framework is optimized for a UICollectionView, but it still can be used in other contexts.

mrjjwright commented 9 years ago

Thanks, that part all makes sense now after a little more time with the framework.