doolse / purescript-reactnative-example

Example purescript-reactnative Movie app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example purescript-reactnative Movie app

This is a purescript-reactnative & purescript-dispatcher-react based port of the Movies example react native app, with a couple of differences at the moment:

  • It points to https://www.omdbapi.com/ instead of rotten tomatoes
  • Scrolling beyond the first 10 results is not supported yet
  • Queries aren't cached

Running it on Android

Start your emulator or phone

npm install
npm run build:android
react-native run-android

You may also have to start the react-native dev server with (in the repo dir):

react-native start

also you may need to proxy the dev server with:

adb reverse tcp:8081 tcp:8081

Running on iOS

screenshot

yarn install
yarn start
yarn build:ios

Some notes:

  • If you have some issues to fetch data with Simulator set Allow Arbitrary Loads to YES in info.plist (via http://stackoverflow.com/a/38219454/2032698)
  • If you might have some issues upgrading to React Native 0.40.0 (such as 'React/RCTEventEmitter.h' file not found or similar) clean your XCode project and build core React in XCode as described by @LoopIndigo in issue #12042

About

Example purescript-reactnative Movie app

License:MIT License


Languages

Language:PureScript 77.6%Language:Objective-C 12.4%Language:Python 5.5%Language:Java 4.5%