The final assessment project for Udacity's React Native course, developed by React Training.
git clone [email protected]:sergdenisov/reactnd-project-mobile-flashcards.git
cd reactnd-project-mobile-flashcards
yarn
yarn start
In the tested environment (macOS Sierra Version 10.12.6
) I was also needed to run the following commands before yarn start
:
sudo sysctl -w kern.maxfiles=5242880
sudo sysctl -w kern.maxfilesperproc=524288
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.
Like yarn start
, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.
Like yarn 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). I 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:
- Make sure that you can run adb from your terminal.
- Open Genymotion and navigate to
Settings -> ADB
. Select “Use custom Android SDK tools” and update with your Android SDK directory.
- Find Genymotion’s copy of adb. On macOS for example, this is normally
/Applications/Genymotion.app/Contents/MacOS/tools/
. - Add the Genymotion tools directory to your path (instructions for Mac, Linux, and Windows).
- Make sure that you can run adb from your terminal.
This project was bootstrapped with Create React Native App.
Below you'll find information about performing common tasks. The most recent version of this guide is available here.
This project was tested in the following environment:
macOS Sierra 10.12.6
;yarn v1.1.0
;Android
:Genymotion
emulator withGoogle Pixel
device (Android 7.1.0
,API 25
,Expo 1.20.1.109790
);iOS
:iOS Simulator
withiPhone 7
device (iOS 10.3
,Expo 1.20.0
);iPhone 8 64GB
physical device (iOS 11.0.3
,Expo 2.0.1.1010359
).