O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modifying tasks for Android

First, we need to point to the Android SDK directory in our app's Android folder under a new local.properties file that you will create. Add the following line, where USERNAME is your machine's username:

// Tasks/android/local.properties sdk.dir = /Users/USERNAME/Library/Android/sdk 
If your Android SDK is installed in a different location from the preceding example, you will need to modify this file to point to the right place.

Then, launch an Android Virtual Device (AVD) and execute the react-native run-android command in your project's root folder. You will see the following screen, which looks just like the default template when we first built Tasks for iOS:

When working in Android, press RR to reload the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required