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
Expoで開発してアプリを公開して得られた知見 / RNM6
Search
pochi
July 12, 2017
Programming
3
1.8k
Expoで開発してアプリを公開して得られた知見 / RNM6
React Native Meetup #6での発表資料です
pochi
July 12, 2017
Tweet
Share
More Decks by pochi
See All by pochi
React Nativeで作ったアプリでRedux-Sagaを使ったので,その話 / TOM Internal Developer Session #7
pchw
0
2.1k
Firebaseでラクラクリアルタイムアプリ
pchw
0
1.4k
MongoDB族のための組み込み軽量DB NeDB
pchw
0
1.4k
月刊ライトニングトーク2014年8月号: MEAN 祭り資料
pchw
0
4.3k
Synth - 東京Node学園2014
pchw
0
4.3k
RubyMotion 1.15で追加されたtest周りの話
pchw
1
3.2k
Other Decks in Programming
See All in Programming
Code as Context 〜 1にコードで 2にリンタ 34がなくて 5にルール? 〜
yodakeisuke
0
120
なんとなくわかった気になるブロックテーマ入門/contents.nagoya 2025 6.28
chiilog
1
240
NPOでのDevinの活用
codeforeveryone
0
480
A2A プロトコルを試してみる
azukiazusa1
2
1.3k
WindowInsetsだってテストしたい
ryunen344
1
200
ソフトウェア品質を数字で捉える技術。事業成長を支えるシステム品質の マネジメント
takuya542
0
260
PHPでWebSocketサーバーを実装しよう2025
kubotak
0
240
PHPで始める振る舞い駆動開発(Behaviour-Driven Development)
ohmori_yusuke
2
230
Result型で“失敗”を型にするPHPコードの書き方
kajitack
4
540
GraphRAGの仕組みまるわかり
tosuri13
8
500
Team topologies and the microservice architecture: a synergistic relationship
cer
PRO
0
1.1k
#QiitaBash MCPのセキュリティ
ryosukedtomita
0
480
Featured
See All Featured
Side Projects
sachag
455
42k
Raft: Consensus for Rubyists
vanstee
140
7k
BBQ
matthewcrist
89
9.7k
A better future with KSS
kneath
239
17k
The Cost Of JavaScript in 2023
addyosmani
51
8.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
Six Lessons from altMBA
skipperchong
28
3.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
124
52k
Navigating Team Friction
lara
187
15k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
24k
Making Projects Easy
brettharned
116
6.3k
Transcript
Expoで開発してアプリを 公開して得られた知見 React Native Meetup#6 July 12, 2017
• ぽち@pchw • https://github.com/pchw • https://twitch.tv/pchw • SW2036-0981-2522 イントロ
イントロ • quickAnnict • Vainglory大会カレンダー
[ピーアール] エンジニア ボシュウ • Tokyo Otaku Mode inc. • オタク関連の全世界向けeコマース・クラウドファンディング・
ニュース・コンテンツ投稿とかのプラットフォーム • ショッピングカートから裏側の倉庫のシステムまで自前 • Shibuya(JP)/Portland(US)/Maihama(JP) • Node.js - MongoDB - Vue.js - etc.. • http://bit.ly/tom-engineer
None
Expo - expo.io
シツモン
None
None
None
None
None
CRNA と Expo
{ "expo": { "sdkVersion": "18.0.0" } } { "expo": {
"name": "18", "description": "An empty new project", "slug": "18", "privacy": "public", "sdkVersion": "18.0.0", "version": "1.0.0", "orientation": "portrait", "primaryColor": "#cccccc", "icon": "./assets/icons/app.png", "loading": { "icon": "./assets/icons/loading.png", "hideExponentText": false }, "packagerOpts": { "assetExts": ["ttf", "mp4"] }, "ios": { "supportsTablet": true } } } CRNA Expo
None
None
None
Expo を使うと楽!
Accelerometer Gyroscope Fingerprint - TouchID Location Notifications Permissions Pedometer -
Core Motion ScreenOrientation Facebook/Google Asset AV/Audio/Video Svg Font GLView BlurView Contacts DocumentPicker ImagePicker BarCodeScanner MapView Util KeepAwake Constants LinearGradient takeSnapshotAsync SQLite Lottie -Animation Amplitude/Segment - analytics Branch - linking FacebookAds Expo SDK
Expo の欠点
Native Modules が使えない
expo で使えるnpm packageか?
Check npm package • README.md • Getting Started • Installation
• $react-native link • $rnpm link
Check source code
Check peerDependencies (package.json) "peerDependencies": { "react-native": ">=0.43.0", "react": ">=16.0.0-alpha.3", "react-native-vector-icons":
"~4.1.1" },
OK • @expo/vector-icons • react-native-branch • react-native-fbads • react-native-maps •
react-native-svg
どうしても途中で Native Modulesが必要に
$exp detach
$exp detach • ExpoKitとしてExpoのライブラリの機能は使える • Push Notificationsとかはダメ • Expo XDEは一応使える
• react-native run-ios でええやん • exp publishでテスト不可に • XCode/Android Studioでビルド
OAuthとか
None
Deep link
Deep link import { Linking } from 'react-native'; const LINK_URI
= Expo.Constants.linkingUri; : componentDidMount() { Linking.addEventListener('url', this._lnk.bind(this)); } _lnk(event) { let queryString = event.url.replace(LINK_URI, ''); const responseObj = qs.parse(queryString); const code = responseObj.code; this.getToken(code).then(…) }
Deeplink on Real device (app.json) "expo":{ "scheme": "qani" }
Expo.Constants.linkingUri • expo app内 • exp://exp.host/@pchw/*****/+ • Standalone Apps •
qani://+
None
ビルド→実機チェック→ストア申請
ビルド Building Standalone Apps
Configure app.json(iOS ver) "name": "foo", "icon": "http://Ͳ͔ͬ.com", "version": “0.0.1”, "ios":
{ "bundleIdentifier": "com.bar.foo", "buildNumber": "1" },
$npm i -g exp $exp login $exp build:ios
None
$ exp build:status
None
実機チェック
None
None
初期ロードの制約 > The very first load cannot be offline
isRemoteJSEnabled: falseは "ios": { "isRemoteJSEnabled": false, },
exp build:ios ⊇ exp publish
まとめ • Expoはとても便利 • なるべくNative Modulesを使わない • どうしてもダメなら覚悟を決めてdetach • expo上でもdeep
linkは確認できる • isJSRemoteEnabledはtrueのままの方が良い