An Udacity Nanodegree Project on React Native
This is my version of UdaciCards project for Udacity’s React Nanodegree course. The purpose of this project is to demonstrate understanding on React Native and to complete 3rd and last assignment project for React Nanodegree course
This project was bootstrapped with Create React Native App.
To get started developing right away:
cd
into project root folder (cd udacicards
)npm install
or yarn install
npm start
or yarn start
If everything goes well, you should be able to see app on your mobile. All the best!
This project was created using Udacity’s React Nanodegree MyReads project template [reactnd-project-myreads-starte] (https://github.com/udacity/reactnd-project-myreads-starter), which was bootstrapped using Create React App. You can find more information about create-react-app here.
If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing.
npm start
Runs your app in development mode.
Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
Sometimes you may need to reset or clear the React Native packager’s cache. To do so, you can pass the --reset-cache
flag to the start script:
npm start --reset-cache
# or
yarn start --reset-cache
npm run ios
Like npm start
, but also attempts to open your app in the iOS Simulator if you’re on a Mac and have it installed.
npm run android
Like npm start
, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see React Native docs for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you’ve finished setting up the native build environment, there are two options for making the right copy of adb
available to Create React Native App:
adb
Settings -> ADB
. Select “Use custom Android SDK tools” and update with your Android SDK directory.adb
/Applications/Genymotion.app/Contents/MacOS/tools/
. This app is supported on both iOS and Android platform.
This app has been tested on iPhone 7, Pixel2 running on Android 6, Pixel XL (emulator) running on Android 7.1, and Samsung Galaxy S4 running on Android 4.4.
MIT
Big thanks to the following: