React Demolishes Engineering Silos So Facebook Can Reuse Code For Web, iOS, And Android

Comment

Image Credits:

It was supposed to take 18 months. But with React Native, Facebook built its iOS Ads Manager app in 5 months, and then ported it to Android in just 3 more months. That’s because React Native let Facebook’s engineers work faster and reuse the JavaScript backend.

Coders have dreamed of a system that would let them ‘write once, run anywhere’. But Facebook engineering manager Tom Occhino says the performace of those apps “feels like shit”. Instead, he says the opportunity is to “learn to build user interfaces once with React, and then you can write your apps anywhere.”

IMG_2350

React and React Native are two tools that have helped Facebook build websites and mobile apps faster. React is a powerful JavaScript framework for web apps. React Native lets developers build native mobile apps in that familiar JavaScript language while displaying user interfaces in high-performance native components.

Facebook open sourced React in 2013 and React Native earlier this year at its F8 conference. That helps it get tons of feedback on how to improve the tools. But now Facebook’s opening up more figuratively about how important these technologies are to its business. Occhino and Facebook engineering director Adam Wolff, who was the co-founder of a company called Sharegrove that Facebook acquired in 2010 to build React, spoke to a group of reporters today.

First Wolff gave a little history of Facebook’s mobile engineering effort. Things were a disaster in 2011. Facebook had grown up as a web-only company that frequently iterated and tested new features. But the pursuit of speed became what Mark Zuckerberg famously called one Facebook’s “biggest mistakes”

The mobile apps were built on HTML5 — a hybrid of native infrastructure wrapped around content pulled from its website. That made it quick to make updates because Facebook could write one mobile web code base and easily wrap it in iOS or Android. But this HTML5 format led to painfully slow mobile apps that users hated.

mobileteamold

Finally in 2012, Mark Zuckerberg declared the company would become mobile first. Whole iOS and Android teams were devised to overhaul the code, and when Facebook re-released its entirely native apps for iOS and Android, speed went up dramatically and so did user satisfaction.

But still, the mobile teams were siloed. So Facebook changed its engineering structure again, led a huge charge to train most of its engineerings in one of the big mobile operating systems, and embedded mobile engineers inside each product team like photos or events.

mobileteamnew

Wolff admits this “slowed down development”, because engineers had to learn these new mobile mediums, and because building for mobile naturally takes longer because of device and native app constraints. But the benefit goes to the user. The native apps are harder to make, yet they can be faster and flashier without using more of a phone’s computing and energy resources.

Facebook ReactNow with React and React Native, the silos dividing Facebook’s engineering teams for web, iOS, and Android are coming down, and so are the barriers to building great apps. Once engineers know how to code in JavaScript for React, they can easily write apps for any of the major platforms.

Next, Facebook is building two more tools called Relay and Flow that will let it still use the JavaScript backend and React, but get some of the flexibility and productivity benefits of more modern coding languages. Occhino concluded “Developers could move really fast on web, and we’re trying to get some of that back with React Native.”

More TechCrunch

The prospects for troubled banking-as-a-service startup Synapse have gone from bad to worse this week after a United States Trustee filed an emergency motion on Wednesday.  The trustee is asking…

A US Trustee wants troubled fintech Synapse to be liquidated via Chapter 7 bankruptcy, cites ‘gross mismanagement’

U.K.-based Seraphim Space is spinning up its 13th accelerator program, with nine participating companies working on a range of tech from propulsion to in-space manufacturing and space situational awareness. The…

Seraphim’s latest space accelerator welcomes nine companies

OpenAI has reached a deal with Reddit to use the social news site’s data for training AI models. In a blog post on OpenAI’s press relations site, the company said…

OpenAI inks deal to train AI on Reddit data

X users will now be able to discover posts from new Communities that are trending directly from an Explore tab within the section.

X pushes more users to Communities

For Mark Zuckerberg’s 40th birthday, his wife got him a photoshoot. Zuckerberg gives the camera a sly smile as he sits amid a carefully crafted re-creation of his childhood bedroom.…

Mark Zuckerberg’s makeover: Midlife crisis or carefully crafted rebrand?

Strava announced a slew of features, including AI to weed out leaderboard cheats, a new ‘family’ subscription plan, dark mode and more.

Strava taps AI to weed out leaderboard cheats, unveils ‘family’ plan, dark mode and more

We all fall down sometimes. Astronauts are no exception. You need to be in peak physical condition for space travel, but bulky space suits and lower gravity levels can be…

Astronauts fall over. Robotic limbs can help them back up.

Microsoft will launch its custom Cobalt 100 chips to customers as a public preview at its Build conference next week, TechCrunch has learned. In an analyst briefing ahead of Build,…

Microsoft’s custom Cobalt chips will come to Azure next week

What a wild week for transportation news! It was a smorgasbord of news that seemed to touch every sector and theme in transportation.

Tesla keeps cutting jobs and the feds probe Waymo

Sony Music Group has sent letters to more than 700 tech companies and music streaming services to warn them not to use its music to train AI without explicit permission.…

Sony Music warns tech companies over ‘unauthorized’ use of its content to train AI

Winston Chi, Butter’s founder and CEO, told TechCrunch that “most parties, including our investors and us, are making money” from the exit.

GrubMarket buys Butter to give its food distribution tech an AI boost

The investor lawsuit is related to Bolt securing a $30 million personal loan to Ryan Breslow, which was later defaulted on.

Bolt founder Ryan Breslow wants to settle an investor lawsuit by returning $37 million worth of shares

Meta, the parent company of Facebook, launched an enterprise version of the prominent social network in 2015. It always seemed like a stretch for a company built on a consumer…

With the end of Workplace, it’s fair to wonder if Meta was ever serious about the enterprise

X, formerly Twitter, turned TweetDeck into X Pro and pushed it behind a paywall. But there is a new column-based social media tool in town, and it’s from Instagram Threads.…

Meta Threads is testing pinned columns on the web, similar to the old TweetDeck

As part of 2024’s Accessibility Awareness Day, Google is showing off some updates to Android that should be useful to folks with mobility or vision impairments. Project Gameface allows gamers…

Google expands hands-free and eyes-free interfaces on Android

A hacker listed the data allegedly breached from Samco on a known cybercrime forum.

Hacker claims theft of India’s Samco account data

A top European privacy watchdog is investigating following the recent breaches of Dell customers’ personal information, TechCrunch has learned.  Ireland’s Data Protection Commission (DPC) deputy commissioner Graham Doyle confirmed to…

Ireland privacy watchdog confirms Dell data breach investigation

Ampere and Qualcomm aren’t the most obvious of partners. Both, after all, offer Arm-based chips for running data center servers (though Qualcomm’s largest market remains mobile). But as the two…

Ampere teams up with Qualcomm to launch an Arm-based AI server

At Google’s I/O developer conference, the company made its case to developers — and to some extent, consumers — why its bets on AI are ahead of rivals. At the…

Google I/O was an AI evolution, not a revolution

TechCrunch Disrupt has always been the ultimate convergence point for all things startup and tech. In the bustling world of innovation, it serves as the “big top” tent, where entrepreneurs,…

Meet the Magnificent Six: A tour of the stages at Disrupt 2024

There’s apparently a lot of demand for an on-demand handyperson. Khosla Ventures and Pear VC have just tripled down on their investment in Honey Homes, which offers up a dedicated…

Khosla Ventures, Pear VC triple down on Honey Homes, a smart way to hire a handyman

TikTok is testing the ability for users to upload 60-minute videos, the company confirmed to TechCrunch on Thursday. The feature is available to a limited group of users in select…

TikTok tests 60-minute video uploads as it continues to take on YouTube

Flock Safety is a multibillion-dollar startup that’s got eyes everywhere. As of Wednesday, with the company’s new Solar Condor cameras, those eyes are solar-powered and use wireless 5G networks to…

Flock Safety’s solar-powered cameras could make surveillance more widespread

Since he was very young, Bar Mor knew that he would inevitably do something with real estate. His family was involved in all types of real estate projects, from ground-up…

Agora raises $34M Series B to keep building the Carta for real estate

Poshmark, the social commerce site that lets people buy and sell new and used items to each other, launched a paid marketing tool on Thursday, giving sellers the ability to…

Poshmark’s ‘Promoted Closet’ tool lets sellers boost all their listings at once

Google is launching a Gemini add-on for educational institutes through Google Workspace.

Google adds Gemini to its Education suite

More money for the generative AI boom: Y Combinator-backed developer infrastructure startup Recall.ai announced Thursday it has raised a $10 million Series A funding round, bringing its total raised to over…

YC-backed Recall.ai gets $10M Series A to help companies use virtual meeting data

Engineers Adam Keating and Jeremy Andrews were tired of using spreadsheets and screenshots to collab with teammates — so they launched a startup, CoLab, to build a better way. The…

CoLab’s collaborative tools for engineers line up $21M in new funding

Reddit announced on Wednesday that it is reintroducing its awards system after shutting down the program last year. The company said that most of the mechanisms related to awards will…

Reddit reintroduces its awards system

Sigma Computing, a startup building a range of data analytics and business intelligence tools, has raised $200 million in a fresh VC round.

Sigma is building a suite of collaborative data analytics tools