Awesome
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
yarn install
yarn start
yarn build:ios
Some notes:
- If you have some issues to fetch data with Simulator set
Allow Arbitrary Loads
toYES
ininfo.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 coreReact
in XCode as described by @LoopIndigo in issue #12042