Designing API in multi-platform world
summary
Presents an abstraction spectrum for cross‑platform APIs and shows concrete choices: implemented react‑native‑localize’s getCurrency by shipping a big constant file getCurrency uses Wikipedia data; rewrote react‑native‑permissions to expose every platform permission so adding Windows and new permissions requires no breaking change; aligned react‑native‑bootsplash behavior to Android to avoid footguns; contrasts expo web browser with a simpler internal browser where 90% of users fit the basic API, reducing integration time significantly.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:19React Native platform evolution
- 3:05Abstraction spectrum explained
- 6:16Low vs high abstraction trade-offs
- 9:04Real-world API design examples
- 12:55Finding the sweet spot
- 14:40API design beyond React Native
- 17:54Q&A begins
- 18:14Climbing Mlong anecdote
- 19:18Audience question on abstractions
- 20:01Backwards compatibility insights
- 21:52Recommended resources
- 23:16Great API design examples
- 23:58Summary and closing
