Building Cross-Platform Component Libraries for Web and Native with React
summary
Claims a practical way to share one codebase by using single-file components with .native/.web swaps and a utils layer that maps tags and props, uses styled-components for cross-platform styling, Storybook for parallel previews and react-native-webview/iframe pairs for platform-specific pieces, and ships an npm-packaging script to avoid bundling native code. A live-content feature for a large news org spans four apps, ships an MVP in under three months and serves millions of users, with caveats around responsive layout, animations and prop name mismatches.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:35Build Cross-Platform Components
- 6:23Cross-Platform Components
- 11:02Style Button
- 19:06Animations
- 19:36Prop Mismatch
- 20:18Component Library
related talks
28mCross-Platform React
50mBuilding Cross Platform Native Mobile Apps using React Native
36mThe sorcery of building a cross platform Design System architecture
59mOne Codebase to Rule Them All - Using React Native Everywhere
43mBuilding a component based library with React
29mOrganizing Code for Cross-Platform Web and Mobile Development
46mReact Native for Web Panel Discussion
16mBuilding Cross-Platform Apps with React Native + Next.js
