Create android app can send SMS and Email by React Natice

15
1 React Native Pham Van Dong

Transcript of Create android app can send SMS and Email by React Natice

Page 1: Create android app can send SMS and Email by React Natice

1

React Native

Pham Van Dong

Page 2: Create android app can send SMS and Email by React Natice

目次

I. Reactとは? II. React-Nativeとは? III. 欠席通知アプリ作成 IV. まとめ

2

Page 3: Create android app can send SMS and Email by React Natice

Reactとは?

•Facebook のチームが開発している、ユーザインタフェースを構築する為の JavaScript ライブラリです。

⇒ http://facebook.github.io/react/

• MVCのViewのみサポート

– 他のライブラリと容易に組み合わせられる

• Virtual DOM (仮想DOM)

– React.createClass: render() -> コンポーネント作成

– React.createElement -> Virtual DOM作成

– JSX

3

Page 4: Create android app can send SMS and Email by React Natice

Reactとは?

4

Page 5: Create android app can send SMS and Email by React Natice

Reactとは?

5

Page 6: Create android app can send SMS and Email by React Natice

React-Nativeとは?

6

JavaScript

ReactJs

React-Native

no HTML

no Browser

no WebView

Page 7: Create android app can send SMS and Email by React Natice

React-Nativeとは?

7

White once

run any where

Learn once

white any where

Page 8: Create android app can send SMS and Email by React Natice

React-Nativeとは?

8

ReacJS JavascriptCore

RCTBridge Native Method

Page 9: Create android app can send SMS and Email by React Natice

React-Nativeとは?

9

React-Native

Page 10: Create android app can send SMS and Email by React Natice

React-Native使い方

•時間チェック

RN開発

10

Page 11: Create android app can send SMS and Email by React Natice

欠席通知アプリ作成

•Demo

•Database(SQLite)

11

template

title

content

boss

name

email

phone_number

Page 13: Create android app can send SMS and Email by React Natice

まとめ

•メリット

–ランタイムでJS => NativeUIをブリッジ

–AndroidのようなXMLレイアウト

–Stylesでの共通スタイルの定義

–Data Binding

–Live Reload

•デメリット

–トレーニング時間がかかる(JS ->ReactJs ->ReactNative)

–Facebookのに依存

13

Page 14: Create android app can send SMS and Email by React Natice

まとめ

•出来たこと

–React-Nativeキャッチアップ

–欠席通知アプリ作成

•コンポーネントとスタイルの使用

•SMS,Email,SQLiteについてモジュール追加

•やりたいこと

–Flux利用

–iOSでビルド

–Trelloカード追加

–GoogleCalendar同期

14

Page 15: Create android app can send SMS and Email by React Natice

15

Thank you!