Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kvvzr authored Sep 11, 2022
1 parent f31f5c9 commit 721c12c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# reconciler-ios-sample

react-reconcilerを使ってiOS(UIKit)でレンダラーを作ってみるサンプルです

## コードの説明

### レンダラー

https://github.com/kvvzr/reconciler-ios-sample/tree/main/ReconcilerSample/Renderer

reconciler関連のコードがこの辺りにあります。HostConfigの定義もここです
JSのコードがReactBridge以下にあり、Swift側のコードを呼んでいることが確認できます

### ToDoアプリ(サンプル)

https://github.com/kvvzr/reconciler-ios-sample/tree/main/ReconcilerSample/TodoSample

Reactで書かれた簡単なサンプルです。アプリを起動すると、こちらが動いてる様子を確認できます

## ビルド方法

### Xcode
シンプルなiOSのプロジェクトになっているので、Xcodeで開いてビルドできます

### JS周りのビルド

必要であれば、ReactBridgeかTodoSampleディレクトリ内で以下を実行してください
```
# 初回はnpm installが必要
$ npm install
# JSのコードをiOSアプリ側に反映したいときは以下を実行してください
$ npm run build
```

0 comments on commit 721c12c

Please sign in to comment.