That one app that you play sports with all the time
You must have the following installed:
Node.jsThis is a javascript "runtime" so you can make scripts/servers/apps in an easy languagecreate-react-native-appYou install this in node on the command line. It downloads the emulator connectors, and basic file structure so you can create an appxCode CommandLine ToolsThis is so you can emulate an iPhone using your app if you have a mac.a good code editorlike brackets/webstorm/eclipse. I have the student version of webstormgitthe versioning system so you can keep track of changes or roll back.
Open the terminal and navigate to the folder you want to install it in ex.
cd ~/Documents
Copy everything from this repo:
git clone git@github.com:TurfSportsTeam/TurfReactNative.git
Install any dependencies (from the command line, and having already navigated to inside your project folder)
npm install
- iOS:
react-native run-ios //optionally add: --simulator="iPhone 4s"
-
Android:
Go to the android/ directory
Create a file called local.properties with this line:
sdk.dir = /Users/USERNAME/Library/Android/sdk
Where USERNAME is your OSX username
react-native run-android //I can't get it to work yet
show a list of devices you can run on (swap out iPhone 4s in the above command)
xcrun simctl list devices
please make any major changes exist in a new branch and try to keep the main branch mostly error free.
There's a list of items to work on in the Trello board. Pick a color no one else has, and label it with your name. When you work on an item, mark that item with your color.
There's also plenty of documentation about the app in the Google Drive folder
Cocoapods is kinda like Gradle in that it can add extra components from other developers. A better example is it's like npm install. So if you want to add Firebase to an iOS project:
cd ios/
pod init #do this once for your project
nano Podfile
under target '<YOUR PACKAGE>' do add a line:
pod 'Firebase/Core'
you may have to add packages to a Gradle file. Look for build.gradle in the android/app folder. You can add 'dependencies' (pods) under dependencies { ex.
compile 'com.facebook.android:facebook-android-sdk:[4,5)'