Rocket Ship

#044 - Yoga, Layouting and New Architecture with Delphine Bugner


Listen Later

Delphine Bugner, Mobile Tech Lead at BAM, discusses the inner workings of Yoga in React Native. Yoga is responsible for positioning components on the screen based on their dimensions and styling props. Delphine emphasizes the importance of understanding how things work under the hood and why they were designed that way. She shares her uncommon journey into becoming a React Native tech lead and her passion for exploring the technical aspects of technology. She also discusses the architecture of Yoga and how it works under the hood, including the translation of JSX into native views, the creation of shadow nodes and Yoga nodes, and the communication between JavaScript and native code. The conversation concludes with a discussion about the future of Yoga and its alignment with React on the web.

Learn React Native - https://galaxies.dev

Delphine Bugner

  • Delphine Twitter: https://twitter.com/DelphineBugner
  • Delphine Github: https://github.com/delphinebugner

Links

  • Delphine "The Yoga Enigma" talk in Berlin: https://www.youtube.com/watch?v=LU3vK3IbprY
  • Yoga: https://www.yogalayout.dev/

Takeaways

  • Yoga is responsible for positioning components on the screen based on their dimensions and styling props in React Native.
  • Understanding how things work under the hood and why they were designed that way is important for developers.
  • Yoga was created as a replacement for CSS in React Native and provides a common platform-agnostic layouting solution.
  • The architecture of Yoga involves the translation of JSX into native views, the creation of shadow nodes and Yoga nodes, and the communication between JavaScript and native code.
  • The new architecture in React Native improves code maintenance and performance.
  • View flattening is a concept in Yoga that minimizes unnecessary containers in the view hierarchy.
  • Debugging Yoga can be done by using breakpoints in C++ to understand the algorithm and identify the source of bugs. The new architecture in React Native brings more conformity with the web and allows for features like suspense and transitions that were not possible before.
  • Working with native modules in React Native is not as difficult as it may seem, and developers can use tools like Bob or Create React Native Library CLI to simplify the process.
  • Expo provides a more maintained and active ecosystem compared to the community libraries, making it a good choice for new projects.
  • Yoga is continuously evolving to align React Native with the web, and future updates will offer more configuration options for developers.
...more
View all episodesView all episodes
Download on the App Store

Rocket ShipBy Simon Grimm

  • 5
  • 5
  • 5
  • 5
  • 5

5

7 ratings


More shows like Rocket Ship

View all
The Knowledge Project by Shane Parrish

The Knowledge Project

2,688 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

289 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

626 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

288 Listeners

React Native Radio by Jamon Holmgren, Robin Heinze, Mazen Chami

React Native Radio

68 Listeners

Y Combinator Startup Podcast by Y Combinator

Y Combinator Startup Podcast

226 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

987 Listeners

The Diary Of A CEO with Steven Bartlett by DOAC

The Diary Of A CEO with Steven Bartlett

8,469 Listeners

Hard Fork by The New York Times

Hard Fork

5,520 Listeners

PodRocket by LogRocket

PodRocket

60 Listeners

Huberman Lab by Scicomm Media

Huberman Lab

29,178 Listeners

devtools.fm: Developer Tools, Open Source, Software Development by Andrew Lisowski, Justin Bennett

devtools.fm: Developer Tools, Open Source, Software Development

25 Listeners

Front-End Fire by TJ VanToll, Paige Niedringhaus, Jack Herrington

Front-End Fire

11 Listeners

AI and I by Dan Shipper

AI and I

33 Listeners

The Pragmatic Engineer by Gergely Orosz

The Pragmatic Engineer

64 Listeners