~/talk

Building dark mode with React Native at scale

Talkat App.js Conf 2023 · 2023-05-10..05-12· [react-native, design-collaboration]
links:none on file
slides:none on file

Shows that using platformColor API plus a generator (clariner/platform-colors) produces native color assets so JavaScript never resolves hexes, letting a large RN app switch to dark with minimal code changes. Tokenizes colors by usage, supports an app-level theme override for feature flags, and covers a 99% components win where no render logic changes are needed while falling back to hooks for the remaining cases. Notes iOS gets smooth transitions and Android requires an activity restart on Android.

AI-written summary · about

  1. 0:00Introduction and poll
  2. 1:27Why dark mode matters
  3. 2:50Problem one system setting directly
  4. 4:59Problem two not using color tokens
  5. 6:24Problem three modifying render logic
  6. 8:29Platform color solution
  7. 13:24Dark mode demo and benefits
  8. 14:48Trade-offs of platform color
  9. 15:55Key learnings summary
~/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.