~/talk

Sharing is Caring: Reusing Web Data Viz in React Native

slides:none on file

Shopify extracts a shared library called polaris-viz core and splits the repo into core, web and native packages, reusing constants, TypeScript types, hooks (useXScale/useYScale/useLabels), themes and utility functions. Web keeps DOM SVGs; mobile uses react-native-svg and onLayout-driven sizing while web uses ResizeObserver. React Native Web is rejected due to bundle size, so a polaris provider supplies platform-specific component mappings. Result: charts render consistently across platforms, bar and line series reuse works, and native builds enable gesture ideas like pinch zoom.

AI-written summary · about

  1. 0:00Start
  2. 5:27Similarities and Differences between React and Reacts Native
  3. 7:48Quick Wins
  4. 8:35Utility Functions
  5. 15:43Reacts Native Web
  6. 20:28Spark Bar Chart
  7. 22:08Chart Container
  8. 23:01Resize Observer
~/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.