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 & Amplifyを使ってWebとアプリを同時開発した話
Search
cohe aoki
March 04, 2021
Programming
1k
2
Share
Expo & Amplifyを使ってWebとアプリを同時開発した話
cohe aoki
March 04, 2021
More Decks by cohe aoki
See All by cohe aoki
BMG が生成したピッチ資料のデモ
coa00
0
430
Amplify Boostup #2 Multi project using monorepo
coa00
0
67
LLMを使ったチームのプロダクト開発の生産性を向上させる取り組み
coa00
0
43
Amplify Boostup #2 monorepo 運用による複数プロジェクト開発
coa00
0
720
サーバレス技術を活用したエンジョイ スピード開発
coa00
1
370
【Amplify Japan UG x Startup】Amplify チームによる プロダクト開発
coa00
0
700
Expo と Amplifyを使って Webとアプリを同時開発
coa00
0
1.4k
Other Decks in Programming
See All in Programming
Sans tests, vos agents ne sont pas fiables
nabondance
0
110
Programming with a DJ Controller — not vibe coding
m_seki
3
850
AI時代になぜ書くのか
mutsumix
0
400
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
180
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
490
いつか誰かが、と思っていた フロントエンド刷新5年間の実践知
kiichisugihara
1
280
【ディップ|26年新卒研修資料】OpenAPI/Swagger REST API研修
dip_tech
PRO
0
160
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
150
Kingdom of the Machine
yui_knk
2
1.5k
検索設計から 推論設計への重心移動と Recall-First Retrieval
po3rin
5
1.7k
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
820
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
340
Featured
See All Featured
The Invisible Side of Design
smashingmag
302
52k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
360
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
180
Docker and Python
trallard
47
3.8k
Fireside Chat
paigeccino
42
3.9k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
170
Build your cross-platform service in a week with App Engine
jlugia
234
18k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.2k
Unsuck your backbone
ammeep
672
58k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
520
Transcript
Expo と Amplifyを使ってWeb とアプリを同時開発した話 @coa00
自己紹介 coa00 (あおきこうへい) • フロントエンド/UIUX が専門で、デザインとかもやります。 • フリーで主にフロントエンドのディレクションから開発までやってき ました。 •
メディアアートが大好きで Arduino, GLSLとかやっていました。 • 2020年から O:という会社で CTOやってます。 Twitter: coa00 https://qiita.com/coa00
Expo Amplify でえもいマネージメントツールをつくりま した
1コードでマルチプラットフォーム対応
Amplifyとは - AWSの各サービスと結合してワンクリックで公開で きるアプリケーション構築環境 - JavaScript、React、Angular、Vue、Next.js、 Android、iOS、React Native、Ionic、Flutter に対 応
Amplify 構成 - 標準的な流れにしたがうと、認証 はCognito、ストレージはS3、 API は AppSyncを使う - Web,
アプリ同様の構成が適用 可能 - AppSync はリアルタイム処理を 得意としており、アプリケーション むけ。
認証の実装方法 - Amplify UI Componentsが用意されており、簡単な 実装で認証の実装ができる。(ハイブリットとなると Web とネイティブで使うライブラリをわける必要があ る)
アプリケーション構成 • Web は React Native Web • ネイティブは React
Native React Native Web 優秀である程度、Webでも快適に動きました。 • UI ライブラリ ◦ React Native Paper ◦ Material UI (Webだけ)
Webとネイティブの動作わけ • WebをすべてRNでつくってしまうと体験 的におとってしまうところがでてしまう。 • ファイル拡張子をつかってコンポーネント をだしわけすることができる。 • Props を同一にすると意識することなく
使える。
自動公開 &Deploy • Amplify には標準でCode Deploy環境がついており、そこに expo の publish を追加するだ
け、Webとアプリの自動公開が可 能(OTA) • Webの公開と同時にアプリの更 新がはいるので超らくらく。
プッシュ通知 • Amplify は lambda の作成が可能。スケ ジュール動作もできる。 • expo-server-sdk を中でよぶことで、push通
知を送信する。 • 大量の通知には Amazon Pinpoint を使う
Amplify はまりどころ • Amplify の UI がネイティブとWebでかなり違う。 • AppSync のサブスクライブを停止しないとタイムアウトエラーでアプリケー
ションが落ちる • AppSync のサブスクライブをこまめにとめないと 同時接続数100をつかい きてしまう。
ごせいちょうありがとうございました