ycfreeman / asyncReduxiOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proof of Concept using JS redux + hidden UIWebView (JavaScriptCore) + RxSwift

this project illustrate possibility to run "headless" javascript data layer and network operations to drive a native iOS UI layer, this is to explore the possibility to have a cross-platform core, while keeping UI layer native so we can use native stuff like StoryBoard among other good things

RxSwift + RxDataSource is just there to simplify UITableView binding

using hidden UIWebView as oppose to true headless JSContext is for easier debugging and XMLHTTPRequest abilities

Build Instructions

Build JS

npm i
npm run build

Build iOS

navigate to iosReduxAsync/

rake carthage

then open iosReduxAsync.xcodeproj in xcode


js part is from https://github.com/reactjs/redux/tree/master/examples/async with only little modifications to index.js and webpack.config.js


TODO: need to use true headless JSContext? performance test needed

About

License:GNU General Public License v3.0


Languages

Language:Swift 57.5%Language:JavaScript 40.8%Language:HTML 0.8%Language:Objective-C 0.7%Language:Ruby 0.3%