-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |