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
Nature での React Native アプリの運用について / React Nativ...
Search
soh335
September 03, 2020
Programming
1.6k
7
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Nature での React Native アプリの運用について / React Native App in Nature
soh335
September 03, 2020
More Decks by soh335
See All by soh335
React Native in Nature
soh335
1
1.5k
Carton を既存の環境に入れるまで入れてから
soh335
0
240
perl な web application のためのテスト情報
soh335
5
3.8k
Other Decks in Programming
See All in Programming
ECSアプリログをFireLensでコスト削減しようとしたけど諦めた話 in Fargate×Node.js
akihisaikeda
2
4.2k
Developing with AI Agents — Codex, Claude Code & Cowork Practical Guide
x5gtrn
PRO
0
1.3k
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
3
850
The NotImplementedError Problem in Ruby
koic
1
850
Strategic Design in the Frontend: Moduliths & Micro Frontends @DDDEurope
manfredsteyer
PRO
0
110
肥大化するレガシーコードに立ち向かうためのインターフェース分離と依存の逆転 / JJUG CCC 2026 Spring
hirokunimaeta
0
580
技術記事、 専門家としてのプログラマ、 言語化
mizchi
13
6.2k
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
140
A2UI という光を覗いてみる
satohjohn
1
140
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
270
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
590
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
100
Featured
See All Featured
Unsuck your backbone
ammeep
672
58k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
180
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Statistics for Hackers
jakevdp
799
230k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
850
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
560
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.1k
Six Lessons from altMBA
skipperchong
29
4.3k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.3k
How to Ace a Technical Interview
jacobian
281
24k
Transcript
厳秘:本資料の⼀部または全部を、Nature株式会社の許可なしに、複製、転載することを禁じます。 Nature Ͱͷ React Native ΞϓϦͷӡ༻ʹ͍ͭͯ Sep 4. 2020 Nature
Inc. soh335
• github.com/soh335 • Nature גࣜձࣾιϑτΣΞΤϯδχΞ About Me 2
• Nature Remo, νʔϜͷհ • Ҡߦ࣌ͷ • ࠷ۙͷ։ൃͷ • ࠷ۙߟ͑ͯΔ͜ͱ
Agenda 3
Nature Remo, チームの紹介
5
スマートデバイス Nature Remo 家電 How It Works
• ΞϓϦ: 2 • όοΫΤϯυ: 3 • ϑΝʔϜΣΞ: 2 •
߹ܭ 5 ਓ ιϑτΣΞΤϯδχΞνʔϜ 7
• https://employment.en-japan.com/ engineerhub/entry/2020/02/06/103000 • ࢀߟʹͳΔͱࢥ͍·͢ React Native ࣗମʹؔͯ͠ 8
Ҡߦ࣌ͷ
Ҡߦཧ༝ • ೋਓͰ iOS, Android ΛΞΫςΟϒʹ։ൃ͍ͯ͘͠ͷ͕͔ͬͨ͠ • ࣌ • React
Native 0.52.0 • TypeScript 2.6.2 • https://employment.en-japan.com/engineerhub/entry/ 2018/08/17/110000 • 2લʹΠϯλϏϡʔͯ͠Β͍·ͨ͠ 10
͜ͷλΠϛϯάͰσβΠϯ৽ • ೝূ෦ϚΠάϨʔγϣϯॲཧΛ༻ҙ • σβΠϯͷ੍͋Δ • iOS ʹ͋Δจࣈͷେ͖͞Λௐͯ͠٧ΊΔͭͱ͔ Android ʹͳ͔ͬ
ͨΓɺٯ͋ΔͷͰ • View पΓ΄΅ίʔυڞ௨Խ͞ΕͯΔ • ΞΫςΟϒʹϦϦʔεͰ͖ΔΑ͏ʹͳͬͨ 11
ڞ௨ԽͰ͖ͳ͔ͬͨͷ • ωΠςΟϒͷڍಈʹؔ࿈͢Δͷ • ύʔϛογϣϯपΓ • Geofence पΓ • ϝʔϥ։͘ͱ͜Ζͱ͔
• ࣌ͳ͔͕ͬͨ Bluetooth पΓ • Ͳ͔ͪΒ͚ͩڍಈ͕͓͔͘͠ճආࡦΛೖΕͯΔ߹ 12
ࠔͬͨϙΠϯτ • σόΠεͷηοτΞοϓ࣌ʹσόΠεࣗͷωοτϫʔΫʹεϚʔτϑΥ ϯ͕ܨ͙ඞཁ͕͋Δ • Ϛγϯʹىಈ͍ͯ͠ΔσόοΨͱͷଓ͕ΕΔ… • Today widget •
https://reactnative.dev/docs/app-extensions 13
࣌ݟक͍ͬͯͨIssue • ςΩετपΓ͕ଟ͍ҹ • CJKಛ༗ͳͷ • ωΠςΟϒଆͷϏϧυγεςϜ͕৽͞ΕΔͱେม
࠷ۙͷ։ൃͷ
• Visual Studio Code • Xcode • Android Studio •
Emulator ։ൃڥ 16
• React Navigation Λ͍ͬͯΔͷͰ Screen Component ༻ҙͯ͠ • ࠷ۙ hooks
ͬͯॻ͍ͯΔ • ෳࡶͳσβΠϯʹͨ͘͠ͳ͍ͷͰγϯϓϧʹ ৽͍͠ը໘ 17
࠷ۙՃͨ͠ը໘ • άϥϑपΓͷܭࢉ D3 • ඳը react-native-svg
React Native ͷ Version Λ͋͛ΔλΠϛϯά • ࣍ͷϝδϟʔΞοϓσʔτ͕ग़ͨΒͦͷલͷ࠷ޙ͋ͨΓΛݕ౼ • ຖճͦ͏͍͏Θ͚Ͱͳ͍͚Ͳ •
Expo SDK ࢀߟʹ 19
ϥΠϒϥϦपΓ • react-navigation • redux & redux-persist & immer •
react-native-maps • react-native-ble-manager • react-native-svg • react-native-vector-icons • react-native-linear-gradient • lottie-react-native • sentry 20
͋͑ͯͬͯͳ͍ͷ • Expo • OTA • Keychain पΓ • GeofenceपΓ
21
Expo • Native ͷίʔυΛॻ͔ͳ͍ͱ͍͏બࢶ͕ͳ͍ • Geofence, Siri ͱ͔ΞϓϦͷϩδοΫΛͦͷ··ॻ͘ඞཁ͕͋Δ 22
OTA • react-native ͷ version ʹґଘ͍ͯ͠ΔͷͰɺΞοϓσʔτͷᐫʹͨ͠ ͘ͳ͍ • ࣗͨͪͰίϯτʔϧͰ͖ͳ͍ͷΛ૿ͨ͘͠ͳ͍ •
࠷ۙ৹ࠪૣ͍ 23
Keychain पΓ • Keychain ͪΌΜͱॻ͘ͷ͕͍͠ • ৴པ͍ͯ͠ΔϥΠϒϥϦΛ͍͍ͨ • https://github.com/kishikawakatsumi/KeychainAccess •
ϥοϓͯͬͯ͠Δ 24
Geofence • ΞϓϦͷϩδοΫʹີ • iOS headless JS ͱ͍͏֓೦ͳ͍ͷͰωΠςΟϒͰී௨ʹॻ͘ • https://reactnative.dev/docs/headless-js-android
25
ଞʹ͍Ζ͍Ζ͋Δ • Native ʹߦॻ͚͍͍Α͏ͳͷࣗͨͪͰ༻ҙ͢Δ͜ͱ • ΦϑΟγϟϧ͕ϗετͯ͠ͳ͍ωΠςΟϒϥΠϒϥϦͷϥούʔϥΠϒϥ Ϧ͍͠ 26
React Native ʹύονૹͬͨΓ • Fix typescript constructor parameter properties •
https://github.com/facebook/metro/pull/262 • Fix some languages wrapped texts are cut off on android • https://github.com/facebook/react-native/pull/25306 27
Fix typescript constructor parameter properties 28 class Employee extends Person
{ constructor(public name: string) { super(); } }
Fix typescript constructor parameter properties 29 function Employee(name) { _classCallCheck(this,
Employee); return _possibleConstructorReturn(this, _getPrototypeOf(Employee).call(this)); } function Employee(name) { var _this; _classCallCheck(this, Employee); _this = _possibleConstructorReturn(this, _getPrototypeOf(Employee).call(this)); _this.name = name; return _this; }
Fix some languages wrapped texts are cut off on android
30 export default class App extends React.Component { render() { return ( <View style={{marginTop: 30}}> <Text>ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ</Text> <Text>͜ΕͰͪΐ͏Ͳेจࣈ͜ΕͰͪΐ͏Ͳेจࣈ͜ΕͰͪΐ͏Ͳेจࣈ͜ΕͰͪΐ͏Ͳेจࣈ</Text> <Text>͜ΕͰͪΐ͏Ͳेจࣈ͜ΕͰͪΐ͏Ͳेจࣈ</Text> <Text>㟬ૣ্㟬ૌഽ㟬ૣ্㟬ૌഽ㟬ૣ্㟬ૌഽ</Text> <Text>㟬ૣ্㟬ૌഽ</Text> </View> ); } }
Fix some languages wrapped texts are cut off on android
31
ύονΛͯͨReact Native Λ͏ • https://github.com/facebook/react-native/wiki/Building-from-source • 0.60 ͰऔΓࠐ·ΕͨͷͰɺͦΕ·Ͱ Patched React
Native Λͬͨ 32
iOSͷόά?Λݟ͚ͭͨΓ • iOS12 ͷຊޠڥͰӳޠ͚ͩͷγεςϜϑΥϯτ ͷ จࣈྻʹΧϯϚؚ͕·ΕΔͱṖͷleading ͕ൃੜ͢Δ ͱ͍͏όά • ଟ
iOS ଆ? iOS13 Ͱൃੜ͠ͳ͍ • https://twitter.com/soh335/status/ 1185552921049460737
Oppo A77 - Some texts gets cut-off • https://github.com/facebook/react-native/issues/ 15114
• One Plus, Oppo ͷσόΠεͰ༻ҙ͞ΕͯΔϑΥϯτ Λ͏ͱจࣈྻͷඳը͕͓͔͍͠
࠷ۙߟ͑ͯΔ͜ͱ
࣮ࡍ React Native Ͳ͏? • ී௨ʹ࡞ͬͯΕ iOS, Android, ͲͷαΠζͰಈ͘ͷͰྑ͍ •
ਖ਼ Android ਂ͘Θ͔Βͳ͍͚ͲΞϓϦ͕ී௨ʹ࡞ΕΔ • ͜ͷνʔϜنͰ1,2िؒʹҰͷΞοϓσʔτΈ͍ͨͳͷωΠςΟϒͦ ΕͧΕͩͱݫ͍͠ • TypeScript ͕ྑ͍ 36
࣮ࡍ React Native Ͳ͏? • Web ϑϩϯτΤϯυͬͯͳ͍͠ɺReact ʹڧ͍ݟ͕͋ΔΘ͚Ͱͳ͍ • ਖ਼ෳࡶͳ͜ͱͨ͘͠ͳ͍
• σβΠϯ͕Ͳ͔ͬͪʹدΓ͕ͪ (͏ͪ iOS ΑΓ) • ωΠςΟϒͷΞοϓσʔτͷΩϟονΞοϓ͕Ͱ͖ͳ͍ͱେม 37
ωΠςΟϒͷΞοϓσʔτͷΩϟονΞοϓ • ࠷ۙηΩϡϦςΟपΓͰݖݶपΓ͕ຖճมΘΔ • ඳը่͕ΕΔΈ͍ͨͳͷͦΜͳͳ͍ 38
React Native ͷόʔδϣϯΞοϓ • ຊମ͕ͦΜͳյΕΔҹͳ͍ • पลϥΠϒϥϦͷํ͕? • iOS, Android
ଆͷ OS ্͕͕ΔλΠϛϯάͷํ͕ͬͺΓؾʹͳΔ 39
ωΠςΟϒͰॻ͖͍ͨʁ • ϝϯόʔ૿͑ͨΒͦΕྑ͍͔ • ݁ہνʔϜͷߏʹΑΓͦ͏ • Ұ୴Ϗϧυͪ͠Ό͑ͬ͘͞ͱॻ͍ͯ֬ೝग़དྷΔମݧؾʹೖͬͯΔ 40
Hermes Ͳ͏ͳΜͰ͠ΐ͏ʁ • JSC ͷ 64bit ରԠ͋ͨΓ͔Βڍಈ͕एׯෆ҆ఆ • ύονͯͯ͘ΕͯΔͷ͕͋ͬͨΓ •
https://github.com/Kudo/jsc-android-buildscript 41
όοΫΤϯυʹؔͯ͠ • CTOͷڈͷొஃͷεϥΠυ͕͋Γ·͢ • https://blog.song.mu/entry/inside-nature-remo 42
࠾༻ͬͯ·͢ • εϚʔτϑΥϯΞϓϦΤϯδχΞ • όοΫΤϯυΤϯδχΞ • ΈࠐΈΤϯδχΞ • ػߏઃܭΤϯδχΞ •
ػցֶशΤϯδχΞ • SRE • https://nature.global/jp/careers 43