KHE for iOS is built upon the react and react-native frameworks from Facebook.
*note: our app is entirely react-native. Meaning there is no swift or obj-c code besides the included facebook library's and the app delegate files that load the main react native components.
Requirements #
- OS X - Only OS X is currently supported
- Homebrew is the recommended way to install nvm, watchman, and flow.
- Install Node.js 4.0 or newer.* Install nvm with Homebrew or its setup instructions here. Then run
nvm install node && nvm alias default node, which installs the latest version of Node.js and sets up your terminal so you can run it by typingnode. With nvm you can install multiple versions of Node.js and easily switch between them.- New to npm?
brew install watchman. We recommend installing watchman, otherwise you might hit a node file watching bug.brew install flow, if you want to use flow.
We recommend periodically running brew update && brew upgrade to keep your programs up-to-date.
Xcode 6.3 or higher is required. It can be installed from the App Store.
Go to project directory in the KHE folder
npm install -g react-native-cli
npm install
- Open (double click) in "/kenthackenough-ios/KHE/ios"
KHE.xcodeproj
Run Xcode project
*note you should see a terminal window open and start building the jsx. If you don't you can manually go to the root of the directory and run npm start