Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Thorben Primke - Leavering Your Android Knowled...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
droidcon Berlin
July 17, 2018
Programming
0
99
Thorben Primke - Leavering Your Android Knowledge To Boost Your Team’s Velocity With React Native
droidcon Berlin
July 17, 2018
Tweet
Share
More Decks by droidcon Berlin
See All by droidcon Berlin
Jon Markoff - Best practice for apps
droidcon_berlin_2018
0
200
Jon Markoff - Voice in the enterprise
droidcon_berlin_2018
0
70
Michael Jess - Enabling enterprise mobility with SAP
droidcon_berlin_2018
0
120
Ronen Sabag - Lean async code with Kotlin’s coroutines
droidcon_berlin_2018
0
72
Boris Farber & Nikita Kozlov - The_Build_Side_of_Android_App
droidcon_berlin_2018
0
200
Zan Markan - The state of Kotlin
droidcon_berlin_2018
0
77
Miquel Beltran - No More □ (tofu) Mastering Emoji on Android
droidcon_berlin_2018
0
130
Laurent Gasser & Jeremy Rochot - Sharing a success story - A low cost, Customer driven and co-developed Android EMM
droidcon_berlin_2018
0
300
Hoi Lam - Adding ML Kit to Android Things And some TensorFlow things
droidcon_berlin_2018
1
230
Other Decks in Programming
See All in Programming
AI時代の認知負荷との向き合い方
optfit
0
160
Package Management Learnings from Homebrew
mikemcquaid
0
230
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
230
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
990
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
1
120
SourceGeneratorのススメ
htkym
0
200
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
4k
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
5
790
dchart: charts from deck markup
ajstarks
3
1k
Raku Raku Notion 20260128
hareyakayuruyaka
0
360
CSC307 Lecture 06
javiergs
PRO
0
690
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.1k
Thoughts on Productivity
jonyablonski
74
5k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
The Curse of the Amulet
leimatthew05
1
8.7k
How STYLIGHT went responsive
nonsquared
100
6k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
650
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.8k
GraphQLの誤解/rethinking-graphql
sonatard
74
11k
Transcript
None
Leavering Your Android Knowledge To Boost Your Team’s Velocity With
React Native 6/27/2018 Thorben Primke Droidcon Berlin
Thorben Primke Product Engineer Pinterest @tprimke
Agenda Background Technical Aspects Current State & What’s Next 1
2 3
React Native React for building mobile application • Developed by
Facebook • Uses JavaScriptCore for processing the JS • Renders natively • Extensible
Our Interest What sparked the exploration • Product Engineering •
Growth Engineering • Business value • Piece wise adoption
Build Times Almost no more waiting • Android - 30sec
to multiple minutes • RN - Instant reloads
Context Less Lost In Translation • Efficient communication • One
Engineer for Web & Mobile • PM, design and engineer • Fewer inconsistencies
Foundation Starting Fresh vs Extending • Greenfield • Brownfield
But really… …is there no other way • Server Driven
UI • Hire more mobile engineers • Adds complexity to infrastructure
The Team Thorben Primke Product Engineer @tprimke Vivian Qu
Growth Engineer @vivqu Michael Schneider Core Experience Engineer @maicki
Agenda Background Technical Aspects Current State & What’s Next 1
2 3
New Home Where to keep the shared code • Android
and iOS in separate repositories • Separate repository for RN • Symlink into mobile repositories
Dependencies Frictionless integration • Leverage Maven • React Native is
already in local maven • Every other library needs the same
Dependencies Frictionless integration • Leverage Maven • React Native is
already in local maven • Every other library needs the same
Dependencies Frictionless integration • Leverage Maven • React Native is
already in local maven • Every other library needs the same
But APK Size …let’s take a look • Split APK
by arch • Multi dex • Fresco already in codebase • Only armv7 and x86
Let’s Render …how to render your React • Fragment based
architecture • Full screen • One React screen / module, one fragment
Let’s Render …how to render your React • Fragment based
architecture • Full screen • One React screen / module, one fragment
Dynamic Typing …but we like static languages • Flow •
TypeScript • Typeahead & refactoring
Native <-> RN …how does it work? • JavaScriptCore •
React Native Bridge • Delayed initialization React Native Native Bridge
API Client …no duplicate networking logic • Expose the REST
methods • No auth token to pass around • Reuse logging
API Client …no duplicate networking logic • Expose the REST
methods • No auth token to pass around • Reuse logging
UI Components …how does it work? • Pinterest Design System
• Gestalt on web • Ported the majority to React Native
Images …sharing between RN and native • Bridge your native
ImageView • Share the same cache
Navigation Leave it to native • JS vs Native navigation
• Single screen approach • Flexible router
Navigation Leave it to native • JS vs Native navigation
• Single screen approach • Flexible router
Navigation Leave it to native • JS vs Native navigation
• Single screen approach • Flexible router
Localization Nothing out of the box • JS Libs •
ICU format • Modeled after Android strings.xml
Localization Nothing out of the box • JS Libs •
ICU format • Modeled after Android strings.xml
Localization Nothing out of the box • JS Libs •
ICU format • Modeled after Android strings.xml
Localization Nothing out of the box • JS Libs •
ICU format • Modeled after Android strings.xml
More Bridging …for all the important pieces • Context Logging
• Experiment Framework
Agenda Background Technical Aspects Current State & What’s Next 1
2 3
Ensuring Success …one screen at a time • A/A NUX
performance experiment • Pre-build meetings • Always frictionless
Ensuring Success …one screen at a time • 4+ screens
live in the app • Continued support • Technology supported
More Work …supporting non-fullscreen • Asynchronous JS layout • iOS
has support RCTSurfaceView • Starting work for Android • Next version of React Native
OTA Updates …or known as code push • Considered but
delayed • Useful even with weekly releases • Requires UI to be fully JS
© Copyright, All Rights Reserved, Pinterest Inc. 2018 Thorben Primke
- @tprimke