/udacity_react_p3

Simple react-native (expo) app for study cards

Primary LanguageJavaScript

(Tested only in iPhone)

Quick start

  • (one time) npm install -g exp
  • yarn install
  • yarn start
  • From your phone, open Expo Client & scan the barcode shown in terminal

How to run (dev)

  • Install Yarn, then run yarn install
  • Install Expo to your Mac
  • Install Expo Client to your phone
  • (optional) Install react-native-debugger brew update && brew cask install react-native-debugger
  • From your Mac: open Expo, open your project
  • (optional) From your Mac: yarn run debug, and wait for react native debugger to connect
  • From your phone: open Expo Client & scan the "Share" barcode (from Expo Mac)
  • (troubleshoot): if debugger is not connecting, check if Debug JS Remotely is enabled on phone. Shake the device to view debug menu

Storybook

  • Complete the steps in "How to run" section first
  • In /config.js change the LOAD_STORY_BOOK boolean variable to true.
  • yarn run storybook
  • From your Mac: Go to localhost:7007 from your browser
  • From your phone: Run the app (on Expo Client)