UPDATED 09:05 EDT / MARCH 27 2015

NEWS

Facebook helping iOS devs by open-sourcing its React Native framework

Facebook Like thumbs up social mediaDevelopers looking to make the leap from web to mobile apps often have a tough road ahead of them, as the two formats can have very different requirements and code structures. Facebook is looking to make this transition a little bit easier by open-sourcing its React Native framework for all users.

“There are many reasons the native mobile environment is more difficult to work with than the web,” Facebook software engineer Tom Occhino wrote in a blog post announcing the new open-source format. “For one thing, it’s harder to lay things out on the screen, and we often have to manually compute the size and position of all our views. We also don’t have access to React or Relay, which have made it easier to scale the process of developing websites and growing our engineering organization. One of the most painful things about our transition to mobile, though, is how much it’s slowed down our development velocity.”

According to Occhino, Facebook has been using its React Native framework internally “for some time now,” and it has greatly sped up the mobile app development process.

React Native is a spinoff of Facebook’s React JavaScript platform, a popular framework used by the social network and many others to develop web apps. With React Native, developers can easily pull in existing JavaScript programs and access native iOS functions, which both improves performance speed and shortens development time.

“The only difference in the mobile environment is that instead of running React in the browser and rendering to divs and spans, we run it in an embedded instance of JavaScriptCore inside our apps and render to higher-level platform-specific components,” Occhino wrote. “One of the best parts about this approach is that we can adopt it incrementally, building new products on top of it or converting old products to use it whenever and wherever it makes sense. Just as we didn’t need to rewrite all of Facebook.com in order to start using React in some places, we don’t need to rebuild our entire mobile Facebook applications in order to start realizing the benefits of React Native.”

By making the framework open source, Facebook wants to “develop in the open as much as possible, collaborating with others who are facing the same challenges.”

photo credit: Ksayer1 via photopin cc

A message from John Furrier, co-founder of SiliconANGLE:

Your vote of support is important to us and it helps us keep the content FREE.

One click below supports our mission to provide free, deep, and relevant content.  

Join our community on YouTube

Join the community that includes more than 15,000 #CubeAlumni experts, including Amazon.com CEO Andy Jassy, Dell Technologies founder and CEO Michael Dell, Intel CEO Pat Gelsinger, and many more luminaries and experts.

“TheCUBE is an important partner to the industry. You guys really are a part of our events and we really appreciate you coming and I know people appreciate the content you create as well” – Andy Jassy

THANK YOU