Facebook speeds iPhone app dev wih React Native

The React Native framework takes advantaghe of many of iOS'es built-in capabilities

Facebook's React Native JavaScript library was designed to ease the process of building the user interfaces for iOS apps.

Facebook's React Native JavaScript library was designed to ease the process of building the user interfaces for iOS apps.

For Web developers, making the jump to building full-fledged smartphone apps can be daunting. Facebook could ease the transition with a newly open-sourced framework its engineers developed to build apps for Apple devices.

The React Native framework provides a way to build app user interfaces for Apple iOS devices using JavaScript, a programming language well-known to many Web developers.

"What we've found is that when we build with React, our code is a lot more predictable. This predictability makes it so we can iterate more quickly with confidence, and our applications are a lot more reliable as a result," wrote Tom Occhino, Facebook software engineer in a post announcing the release during the company's F8 conference, ending Thursday.

React Native is an offshoot of React, a Facebook-built JavaScript framework released two years ago for building mobile app user interfaces with HTML5 and other Web standards.

React Native takes advantage of the native programming hooks offered by Apple devices and the iOS operating system. Using native hooks from the device's operating system can speed performance. It also opens up use of capabilities offered by the device itself or the OS, such as date pickers and mapping capabilities.

Building interfaces for native applications can be more difficult than building Web interfaces, Occhino explained. A program under development needs to be compiled each time it has to be tested, which slows the development process. The work is more labor-intensive. In some cases, sizes and positions of elements must be calculated by hand.

React Native tackles both of these issues. It uses tools developed for React that automatically calculate the sizes and positions of elements. Because React Native uses JavaScript, developers can see their changes as soon as they are applied. By forcing the programmer to break an application into discrete components, the React programming model can be more intuitive, compared to JavaScript itself, according to Facebook.

Facebook plans to release a version of React Native for building Android apps in the near future.

React Native is the latest in a series of programming tools Facebook has released as open source, in hopes other parties would reuse the software and submit improvements. React Native joins the HipHop Virtual Machine (HHVM), which compiles PHP code to run more quickly, and Flow, a JavaScript error checker.

Joab Jackson covers enterprise software and general technology breaking news for The IDG News Service. Follow Joab on Twitter at @Joab_Jackson. Joab's e-mail address is Joab_Jackson@idg.com

Join the Good Gear Guide newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags Development toolsapplication developmentsoftwareFacebook

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Joab Jackson

IDG News Service
Show Comments

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?