Code for the Four Days application
- First run
yarn install
- If you find any error applying patches, just apply them manually
- Just run
yarn android
.
For release versions:
- Go to
android
. - Run
./gradlew assembleRelease
.
- Install Cocoapods.
- Run
pod install
from the./ios
directory.
For release versions:
- Open the workspace with XCode.
- Connect a physical device.
- Change the scheme to Release.
- Go to Build > Archive
- Once it's done you will have the option to upload directly to the store.
React Native and iOS don't play well together.
Problems I found multiple times and their potential solutions:
This is probably because glog, a third party library used by react native, hasn't been compiled correctly.
Go to node_modules/react-native
Try running scripts/ios-install-third-party.sh
to download the four or so libs react native uses.
Go to third-party/glog-0.3.5
Run ./configure && make && make install
References:
The webpage is plain HTML + LESS. To compile LESS to CSS just run npm install less -g
and then run lessc fourdays.less fourdays.css
.
I'm using Browser-sync to automatically reload the webpage on file changes.