~/talk

The Yoga Enigma

Talkat App.js Conf 2024 · 2024-05-22..05-24· [react-native, frontend-architecture]
links:none on file
slides:none on file

A layout bug crops text in a row because Yoga initially asks native text measurement with the full available width, so the text reports too-large line widths and overflows; adding flexShrink: 1 lets Yoga recalculate with reduced remaining space and fixes it. Debugging uses an Expo app, breakpoints inside Yoga’s C++ calculateLayout, and native text measures (iOS UIKit / Android StaticLayout). Native text measurement costs around 50–60% of Yoga time; enabling useWebDefaults restores web-like defaults.

AI-written summary · about

  1. 0:00Introduction and bug example
  2. 1:48What is Yoga layout engine
  3. 3:58History of Yoga development
  4. 7:12Yoga algorithm deep dive
  5. 14:23Bug origin in Yoga algorithm
  6. 16:51Fixing the bug with flexShrink
  7. 19:01Why flexShrink is default zero
  8. 20:49Performance impact of text measuring
  9. 21:11Future of Yoga and web defaults
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.