Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
RN分享
Search
passol1988
March 11, 2017
Programming
25
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RN分享
passol1988
March 11, 2017
More Decks by passol1988
See All by passol1988
callkit研究
passol1988
0
63
jspatch分享
passol1988
0
31
Other Decks in Programming
See All in Programming
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
Domain-Driven Transformation
hschwentner
2
2.3k
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
残高管理から台帳サービスへの進化
artoy
1
200
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
270
Featured
See All Featured
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Code Review Best Practice
trishagee
74
20k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Deep Space Network (abreviated)
tonyrice
0
370
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
220
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
WCS-LA-2024
lcolladotor
0
890
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Transcript
RNړՁ எူ
ᙧวՕᕨ 1.ଘݣ,write once, run anywhere 2.ڹᒒ֛ḵӧ֯ 3.ๅො᧣አܻኞ 4.ᅾๅෛ
ᵱᥝഩൎጱचᏐᎣᦩ 1.ਞܓݎ 2.OCݎ 3.Javascript 4.ES6,Redux,Flexbox,React-Nativeຝ ᗌᅩ: 1.ଚӧᚆਠقଘݣ҅᮱ړᬮฎᵱᥝᕣᒒᯈݳ 2.ֵአ᮱ړᕟկՖᆐํࣗ 3.fbஉݢᚆӧᖌಷ 4.ᅾๅෛ(codePush)ጱ๐ۓஙጱ҅ํݢᚆӧᑞਧ
֢አ ES6 ᒫӣොପ React-Native iOS Android
ፓ୯ᕮ index.ios.js:iOSጱفݗկ node_modules:npmᓕቘጱପկ package.json:ᶱፓׁᩢկ js:ᶱፓկ resource:ᶱፓᩒრկ app.json:(ݢᭌ)
ݎሾह൫ୌ 1.ݎૡٍ brew install node //nodeሾह npm install -g yarn
react-native-cli //rnե brew install watchman //ਫፊၥկݒ۸ 2.Xcode react-native init ᶱፓݷ ݢզಋۖ Ԟݢզکᶱፓ᪠ஆӥreact-native run-ios
ಋۖᵞ౮ 1.package.jsonץදଚnpm install 2.ֵአcocoapodsىᘶ 1) فૡᑕ,link libraries 2҂ץදheader አ᪠ஆ 3)
ᚕ๊ഘ #import <React/(.*)> #import "$1"
ኞޮ๗ ত getDefaultProps getInitialSatte componentWillMount render componentDidMount ᬩᤈӾ ંpropsදݒ componentWillReceiveProps
stateදݒ shouldComponentUpdate componentWillUpdate render componentDidUpdate ܬ componentWillUnmount ᕮ ฎ ވ
Debug 1.ސۖݸݣ๐ۓ 2.ᬩᤈXcode 3.Cmd+R᯿ෛڬෛ,Cmd+D᧣᩸᧣ᦶោܔ
ᅾๅෛ(CodePush) 1.ਞᤰڠୌဳٙ npm install -g code-push-cli code-push register code-push login
code-push app add ᶱፓݷ 2.ႲےSDK nam install —save react-native-code-push nam i rnpm rpm link react-native-code-push ᘏಋۖᵞ౮ 3.ᵞ౮ CODEPUSH_KEY CodePushDeploymentKey componentDidMount syncොဩ jsCodeLocation = [CodePush bundleURL]; ᶉἕๅෛ҅୩ګๅෛ̶ ڹݸݣڔഘጱײๅෛ 4.ݎๅෛ code-push release-react Project ios code-push release-react Project ios --t 1.2.1 --dev false --d Production --des "1.౯ฎဳ᯽ --m true ᘏಋۖ: react-native bundle --platform ଘݣ --entry-file ސۖկ --bundle-output ۱jsᬌڊկ --assets-dest ᩒრᬌڊፓ୯ --dev ฎވ᧣ᦶ code-push release <ଫአݷᑍ> <Bundlesಅࣁፓ୯> <ଫጱଫአᇇ> --deploymentNameғ ๅෛሾह --descriptionғ ๅෛൈᬿ -- mandatoryғ ฎވ୩ګๅෛ
᭗מܻቘ JavaScript RCTBridge Event Dispatcher Control Event Device Event Device
Event Device Event OC ཛྷࣘ ᧣አJS ᬬࢧJSON ےғOC੶ےJSრහഝҁݢզᑍԅғֵአ ReactJSຝጱҘ҂҅ଚڥአ JavascriptCore.framework൫ୌ᩸OCBridge҅ ֢ԅJS੶᭗ᦔጱૡ̶ٍ ഭᇇғOC੶᭗ᬦcss-layoutᏟਧᜓᅩጱ֖ᗝ̶ ᕲګғNative UIᜓᅩᬰᤈdrawRect̶
ള 1.RCTBridgeModule RCT_EXPORT_MODULE RCT_EXPORT_METHOD methodQueue 2.NativeAppEventEmitter
پӻੜወᳯ 1.فiOS۱य़ੜ ପկय़ᕅ120m҅فय़ੜپԒ෫ݒ۸ 2.ग़ӻᶭᶎ᮷አreact-native ኧӞӻ᪡ᔄ҅᭗ᬦփفӧݶጱpropertiesᵍᐶ ᘏفग़ӻࣈ࣎ 3.ਞܓiOSӧݶੴெԍې դᎱ᯾ݢզڣෙplatform Ԟݢզአӧݶጱݸᖗݷ.index.ios.js,index.android.js
ᨀᨀ