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
2k
Firebaseでラクラクリアルタイムアプリ
pchw
0
1.3k
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.1k
Other Decks in Programming
See All in Programming
Multi Step Form, Decentralized Autonomous Organization
pumpkiinbell
1
660
Unity Android XR入門
sakutama_11
0
140
ISUCON14公式反省会LT: 社内ISUCONの話
astj
PRO
0
180
時計仕掛けのCompose
mkeeda
1
280
Writing documentation can be fun with plugin system
okuramasafumi
0
120
GitHub Actions × RAGでコードレビューの検証の結果
sho_000
0
240
さいきょうのレイヤードアーキテクチャについて考えてみた
yahiru
3
730
Amazon ECS とマイクロサービスから考えるシステム構成
hiyanger
2
490
Rails アプリ地図考 Flush Cut
makicamel
1
110
AWS Lambda functions with C# 用の Dev Container Template を作ってみた件
mappie_kochi
0
240
XStateを用いた堅牢なReact Components設計~複雑なClient Stateをシンプルに~ @React Tokyo ミートアップ #2
kfurusho
1
770
SwiftUI Viewの責務分離
elmetal
PRO
0
140
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Writing Fast Ruby
sferik
628
61k
How STYLIGHT went responsive
nonsquared
98
5.3k
Why Our Code Smells
bkeepers
PRO
335
57k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
The Cost Of JavaScript in 2023
addyosmani
47
7.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Typedesign – Prime Four
hannesfritz
40
2.5k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
34
2.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.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のままの方が良い