PureScript React Native TodoMVC example app
PureScript Objective-C Java JavaScript Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
android
ios
src
.flowconfig
.gitignore
.watchmanconfig
README.md
UNLICENSE
bower.json
index.android.js
index.ios.js
package.json
screenshot.png
watch.sh

README.md

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