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
Flutter or React Native
Search
keinuma
November 17, 2020
Programming
150
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Flutter or React Native
keinuma
November 17, 2020
Transcript
32 slides
Flutter と React Native 2020/11/17 沼⽥ 1 / 32
回のお カミナシではReact Native + Expo を利⽤してる Flutter はReact Native と
すると何が しいか知りた い 開発・ ⽤ 点でまとめてみた 2 / 32
論 Flutter はエコシステムが していてアプリ開発に必 な が っている ⽇ の事例が ないが
も えてきそう 3 / 32
React Native で えない はExpo と してお します 4 /
32
ポイント . 基 情 . 開発 . UI . 状
理 . テスト 5 / 32
基 情 6 / 32
Flutter React Native 業 Google Facebook Dart JavaScript GitHub スター
107k 91.3k 7 / 32
開発 8 / 32
React Native パッケージ 理は npm or yarn Lint + Formatter
は ESLint + Prettier ホットリロード 開発、リリースはExpo CLI が便利 9 / 32
Flutter パッケージ 理は pub(Yaml) 開発 構築、Lint は Flutter CLI アプリ向けビルドできる
ホットリロード 10 / 32
pubspec.yaml の例 name: flutter_sample environment: # Flutter SDK のバージョンを指 sdk:
">=2.7.0 <3.0.0" dependencies: # flutter: sdk: flutter dev_dependencies: flutter_test: sdk: flutter flutter: # アプリの基 Theme 、フォントの情 を できる uses-material-design: true 11 / 32
開発 Flutter CLI はExpo CLI 相当の を提供している 開発、リリース周りは とも はない
12 / 32
UI レンダリング 13 / 32
React Native React のコア を利⽤してレンダリング React Native のコンポーネントがネイティブ のUI と⼀
している React Native のView は Android の android.view であり iOS の UIView 14 / 32
Flutter Flutter は FW のAPI を担うflutter/flutter と描 周りの flutter/engine がある
flutter/engine は独⾃のレンダリングエンジ ンになっている 15 / 32
Flutter の構成 16 / 32
UI 17 / 32
React Native JSX を使ってHTML Like にかける Style を使ってCSS Like にレイアウト、⾒た
⽬を えられる 的な React Native ⾃体は のコンポーネント のみ UI ライブラリを利⽤することが い 18 / 32
Flutter React にインスパイアされてるので 的 は⼀ Widget を使って する ⽤ されているWidget
の種 が い Material Design はpackage なしで使え る 19 / 32
class MyAppBar extends StatelessWidget { MyAppBar({this.title}); final Widget title; @override
Widget build(BuildContext context) { return Container( height: 56.0, padding: const EdgeInsets.symmetric(horizontal: 8.0), decoration: BoxDecoration(color: Colors.blue[500]), child: Row( children: <Widget>[ IconButton( icon: Icon(Icons.menu), tooltip: 'Navigation menu', onPressed: null ), Expanded( child: title, ), IconButton( icon: Icon(Icons.search), tooltip: 'Search', onPressed: null, ) ], ) ); } } 20 / 32
UI React Native, Flutter 共に 的UI で す ることは⼀ UI
コンポーネントの 度はFlutter が上 21 / 32
状 理 22 / 32
React Native ローカルはhooks を利⽤ Global にはRedux, Mobx, Recoil, Rx が
択 に 上がる Store を⼀つ持って各コンポーネントが 照、更 する 23 / 32
Flutter ローカルはFlutter 向けのhooks を利⽤(パッ ケージ) Global State は の がある
Redux, RxDart block Riverpod + Freezed + state_notifier 24 / 32
状 理 React Native, Flutter 共に の⼿ がある Flutter はまだまだメインの
を い って いる mono さんは の Riverpod + Freezed + state_notifier をおすす めしてる 25 / 32
テスト 26 / 32
React Native Unit Test: Jest Integration Test: Jest snapshot test
or Storybook E2E Test: Cypress, Selenium 27 / 32
Flutter Unit Test: flutter_test Integration Test: WidgetTest in flutter_test E2E
Test: flutter_driver 28 / 32
テスト React Native はJest や のライブラリに している Flutter は 式パッケージ内で各レイヤのテ
ストが する 29 / 32
React Native との み けは エコシステムの 点だとFlutter に 配が上がりそ う
JavaScript をWeb と共有したい場 はReact Native が良さそう Flutter for web に期待 30 / 32
まとめ Flutter はアプリ開発に必 な 、 ⽤フローが っている Flutter の不採⽤理由に 不⾜が
ることは な い 31 / 32
式ドキュメント 著 なFlutter エンジニアのTwitter @_mono さん @razokulover さん mono さんのMedium
https://medium.com/flutter-jp/ 32 / 32
More Decks by keinuma
See All by keinuma
品質と新規開発のバランス / Quality and new development
keinuma
0
2.5k
Firestoreを実装してみた話
keinuma
0
68
GoによるGraphQLの実装
keinuma
0
3.4k
Atomic Design手法
keinuma
0
110
なぜAtomic Designが生まれたか
keinuma
0
98
Other Decks in Programming
See All in Programming
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
3
1k
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
230
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
Compiling Your Language to WasmGC & Friends
tanishiking
0
390
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
210
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
2
520
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
AIコーディングをセッションで終わらせない: PHPライブラリ開発におけるコンテキスト承継設計
ickx
0
110
はじめてのPLATEAU
nokonoko1203
1
670
Math.sumPreciseから学ぶ、ECMAScript仕様の数値の種類
syumai
0
560
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
320
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
250
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
Six Lessons from altMBA
skipperchong
29
4.6k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
570
The World Runs on Bad Software
bkeepers
PRO
72
12k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.5k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
470
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
760
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
2
540
First, design no harm
axbom
PRO
2
1.4k