No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
actions
components
reducers
utils
.babelrc
.gitignore
.watchmanconfig
App.js
App.test.js
README.md
app.json
package-lock.json
package.json
yarn.lock

README.md

Udacity Project 3: Mobile Flash Cards

Mobile Flashcards in action

This project is a part of Udacity’s React Nanodegree. Important note to the user: I chose to do an iOS only mobile application. So if you do not have an iOS device you will have to use an iPhone simulator on your Mac.

Installation

Downloading the Repo / Setting up the Developer Environment

  1. Run git clone https://github.com/iwakoscott/mobile-flashcards.git or download a .zip from the Github repository.
  2. Run yarn install to download dependencies.

Using your iPhone

Installing this application onto a simulator or your actual phone is quite simple using Expo.

  1. Make sure you have the Application downloaded on your iPhone. If you don’t already have the Expo Application downloaded on your iPhone, click here. The cool thing about Expo is that after downloading the application, you don’t even need to sign up for an account to get your app up and running on your iPhone.
  2. After downloading the App on your iPhone, head over to your terminal and cd into mobile-flashcards directory that you cloned.
  3. Once you are in mobile-flashcards run exp start && exp send -s <your-phone-number-or-email> . The exp send -s <your-phone-number-or-email> is required for iOS devices which will send a link to your iPhone via email or text. Once you get the link, click the link and the app will magically open on your iPhone.

Using the iPhone Simulator

This requires Xcode already installed on your laptop: Xcode - Apple Developer

  1. Within the root directory of mobile-flashcards, run exp ios && exp start
  2. This will open up the Expo app in Xcode’s iPhone simulator. It may work out of the box, however, I ran into some issues getting the simulator to open up my Application in Expo. You may be presented with this error in the simulator:

Step 1

If so, click on the “Go Back to Expo Home“ button (outlined in red in the screenshot) and then click the “Projects” tab in the lower left corner (again outlined in red in the screenshot below)

Step 2

Then, in the upper right corner click the “+” icon. Step 3

And then you will be presented with the following dialogue: Step 4

Go back to your terminal and copy the url located immediately underneath the QR code. Your URL may be a little bit different than the one listed in the screenshot below. Step 5

Paste the URL into the dialogue open in the simulator and then click “Open” and the application should start!

Step 6

Shout out to these two libraries that helped me do some really cool animations!

  1. react-native-deck-swiper
  2. react-native-card-flip