Paul Krill
Editor at Large

Facebook’s iOS UI development framework goes open source

news
Mar 26, 20151 min

ComponentKit framework, now offered for general use, reduces the complexity of writing code

Facebook has open-sourced ComponentKit, its React-inspired framework for iOS.

Facebook says ComponentKit is a native Objective-C++ view framework with a declarative, functional approach to building a UI. “We use this inside of our own Facebook [iOS] app to power News Feed and the other products within the app,” said James Pearce, head of the open source program at Facebook. “We’ve rolled this out over the last year or so, and we’ve obviously seen a big improvement in both the performance, the startup times, and the amount of code we have to write; the complexity’s really dropped.”

ComponentKit is inspired by React, in the sense that developers declare how they want to use the interface instead of trying to imperatively put it together piece by piece, Pearce explained. ComponentKit can be found on GitHub.

ComponentKit emphasizes a one-way data flow from immutable models to immutable components. These components describe how views should be configured and let developers focus on what the interface itself should look like, rather than focusing on steps to build the interface.

By making ComponentKit available to anyone, Pearce said Facebook hopes developers will get the same benefits that Facebook has, such as simplicity of code.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author