hoodunit / purescript-react-native-todomvc

PureScript React Native TodoMVC example app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PureScript on React Native - TodoMVC

This is a todo app for Android in the style of TodoMVC using PureScript wrappers for React Native. It has only been tested on Android but may, in theory, work for iOS with small changes.

To install and run the app:

  1. Install React Native and the Android SDK tools.
  2. Install dependencies and set up project:
npm install
react-native android
bower update
  1. Start Pulp to compile PureScript source (and recompile on changes):

./watch.sh

  1. Start server for serving JS files to the app.

react-native start

  1. Plug in Android device (or load up emulator).
  2. Set up a reverse socket connection so your app grabs JavaScript sources from the correct place.

adb reverse tcp:8081 tcp:8081

  1. Build app and push it to the device. Enable auto-refresh in the app options.

react-native run-android

About

PureScript React Native TodoMVC example app

License:The Unlicense


Languages

Language:PureScript 49.8%Language:Objective-C 29.2%Language:Java 13.1%Language:JavaScript 7.6%Language:Shell 0.3%