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
Haskell でアルゴリズムを抽象化する / 関数型言語で競技プログラミング
naoya
17
4.8k
FormFlow - Build Stunning Multistep Forms
yceruto
1
180
レガシーシステムの機能調査・開発におけるAI利活用
takuya_ohtonari
0
610
関数型まつり2025登壇資料「関数プログラミングと再帰」
taisontsukada
2
830
ktr0731/go-mcpでMCPサーバー作ってみた
takak2166
0
170
複数アプリケーションを育てていくための共通化戦略
irof
10
4k
関数型まつりレポート for JuliaTokai #22
antimon2
0
130
都市をデータで見るってこういうこと PLATEAU属性情報入門
nokonoko1203
1
530
Benchmark
sysong
0
220
統一感のある Go コードを生成 AI の力で手にいれる
otakakot
0
3k
Using AI Tools Around Software Development
inouehi
0
1.2k
業務自動化をJavaとSeleniumとAWS Lambdaで実現した方法
greenflagproject
1
120
Featured
See All Featured
Designing Experiences People Love
moore
142
24k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.8k
Music & Morning Musume
bryan
46
6.6k
Navigating Team Friction
lara
187
15k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
What's in a price? How to price your products and services
michaelherold
245
12k
YesSQL, Process and Tooling at Scale
rocio
173
14k
Balancing Empowerment & Direction
lara
1
340
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
4
200
Visualization
eitanlees
146
16k
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のままの方が良い