~/talk

Sharing Code Between Web and Mobile Native Apps

Talkat AngularUP 2018 · 2018-06-01..06-30· [angular, react-native]
slides:none on file

Shows how Angular + NativeScript let one repository produce web and native iOS/Android builds by sharing TypeScript business logic and swapping platform pieces. Uses a monorepo with a file convention .tns.html /.tns.ts convention (Webpack picks .tns files) and DI to provide web HttpClient or NativeScript HTTP client. Provides schematics to scaffold and migrate projects and components via ng g @nativescript/schematics and ng migrate commands. Demo app reuses a single ~170-line user service and a Petfinder API integration; discusses wrapper vs adapter approaches for mismatched plugin APIs.

AI-written summary · about

  1. 0:00Introduction to code sharing
  2. 1:09What is NativeScript
  3. 4:18Project structure for code sharing
  4. 8:34Demo of Petfinder app
  5. 15:40Challenges in code sharing
  6. 18:10Migrating existing projects
  7. 22:46Demo of migration schematics
  8. 26:28Closing and Q&A
~/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.