Facebook is loading a slew of new tools into its development arsenal. The company announced new developer services and solutions at its annual F8 developer conference this week.
With React VR, developers can create 3D scenes, build audio and video capabilities, and provide 360-degree content. “React VR continues to drive the mantra of the React ecosystem: Learn once, write anywhere,” Imm wrote.
According to Byron and Savona, as Relay started to be used on a variety of different devices the team realized some limitations with the design. For instance, the nature of the API made it difficult to achieve a high level of performance. The API also made it hard for developers to learn and predict things.
“Relay Modern retains the best parts of Relay — colocated data and view definitions, declarative data fetching — while also simplifying the API, adding features, improving performance, and reducing the size of the framework,” the team wrote. Relay Modern features two new concepts: static queries and ahead-of-time optimization, and adds simpler mutations and garbage collection.
The company also released a declarative UI framework for Android into open source. According to the team members, building a smooth UI performance on Android is too difficult. As a result, the company developed Litho to provide UI optimizations under the hood while keeping the code maintainable.
“Building on the success we’ve seen with React, we wanted to deliver a simple API for defining user interfaces from declarative components, with performance as the primary goal. We designed the framework to be fast, even for our complex products such as News Feed,” Pasquale Anatriello and Marco Cova, Facebook team members, wrote in a post.
Litho features asynchronous layout, flatter view hierarchies, and fine-grained recycling to define UI components. More information is available here.