Built on React Native for iOS. Uses emotions data collected by Mantaray AR LLC.
BSD License
- OSX
- Xcode
- Homebrew
brew install node
brew install watchman
brew install flow
npm install -g react-native-cli
We have already done the following step:
- `react-native init EmotionsQuiz
- Open
EmotionsQuiz/EmotionsQuiz.xcodeproj
The is an extra step you will need to do here in order to link a library that has RTCRootView.h
:
Import file under "Build Phase" into the "Link Binary with Library". Click the plus under "Link Binary with Library", and hit "Add Other...". Then navigate to the directory node_modules -> react-native -> React -> Base -> RCTRootView.m
- Run in Xcode.
You can now modify code in the project and refresh your iOS simulator to see the changes.
When testing, make sure the following like is uncommented in EmotionsQuiz/AppDelegate.m
:
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
When deploying, comment out that line and uncomment the following line in the same file:
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
And then run:
react-native bundle --minify
in the terminal.