~/lightning

Going Native: Reusing Code

Lightningat React Native EU 2018 · 2018-09-05..09-06· [react-native, frontend-architecture]
github:lithin
slides:none on file

Company Hive moves a React web app into React Native for smart‑home apps and finds UI components are largely unreusable so the UI is rebuilt natively, while Redux sagas and translations stay shared in a common folder. SVGs are wrapped as React components and mapped per platform. Styling uses styled-components to share CSS-like rules. Hardware work (Bluetooth, push) uses native SDKs but total custom native code is 2–3 lines of native code beyond library glue.

AI-written summary · about

  1. 0:00Intro
  2. 0:37Components
  3. 1:45Native vs Web
  4. 2:41Logic Component
  5. 3:26SVG Components
  6. 4:36Styling
  7. 5:40Business Logic
  8. 6:18Hardware Integration
  9. 7:31Reusing Components
~/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.