For our mobile apps, we bundle https://github.com/wevote/WebApp with https://github.com/wevote/WeVoteCordova.
From within the root directory after cloning,
Run:
npm install
This will add all required dependencies from package.json
Alternatively, if you use yarn, run:
yarn install
To run on iOS:
react-native run-ios
To run on android:
react-native run-android
Please read and contribute to our WeVoteReactNative Wiki!
This repository contains We Vote's iOS and Android versions built with ReactNative. It is being built based on specifications created and tested in the We Vote WebApp Using data we have gathered in our API Server from Google Civic API, Vote Smart, MapLight, TheUnitedStates.io and the Voting Information Project. We give voters a social way to interact with ballot data.
Interested in volunteering? Starting presentation here. Please also read about our values and see our Code of Conduct
You can see our current wireframe mockup for a San Francisco ballot here: http://start.wevoteusa.org/
And finally, the current live demo version of the mobile website version is here: https://wevote.me (Our iPhone and Android versions are not available to the public yet.)
Some articles to orient you:
Writing Cross-Platform Apps with React Native
Our commentary: If you know ReactJS, the transition to React Native is very logical -- BUT we are finding that all rendering is new code, and we are not able to bring over too much from our wevote/WebApp repo. We believe that we will be able to use the same data Store and Action code.
The React Native documentation is a great place to start.
These are some videos which'll give you a brief overview of React Native.
React.js Conf 2015 Keynote - Introducing React Native (32 minutes)
React.js Conf 2015 Keynote 2 - A Deep Dive into React Native (30 minutes)
NOTE: For developing on macOS the environment installation will likely need 10-15gb of drive space. Android SDK and Android Studio installation and emulation will likely require approximately 40gb of drive space.
-
iOS and Android Specific Instructions
3a. Installation for iOS Development
3b. Installation for Android Development
4a. Running WeVoteReactNative iOS for the First Time
4b. Running WeVoteReactNative Android for the First Time
3a. Debugging Tools and Tips iOS
3b. Debugging Tools and Tips Android
Please read the following before you start contributing to the project. Thank you!