Skip to content

Commit b0cc18d

Browse files
committed
Updating adb instructions.
1 parent 3492510 commit b0cc18d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

react-native-scripts/template/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,19 @@ Like `npm start`, but also attempts to open your app in the iOS Simulator if you
5555

5656
#### `npm run android`
5757

58-
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](https://facebook.github.io/react-native/docs/getting-started.html) for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you've finished setting up the native build environment:
58+
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](https://facebook.github.io/react-native/docs/getting-started.html) 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:
59+
60+
##### Using Android Studio's `adb`
5961

6062
1. Make sure that you can run adb from your terminal.
6163
2. Open Genymotion and navigate to `Settings -> ADB`. Select “Use custom Android SDK tools” and update with your [Android SDK directory](https://stackoverflow.com/questions/25176594/android-sdk-location).
6264

65+
##### Using Genymotion's `adb`
66+
67+
1. Find Genymotion’s copy of adb. On macOS for example, this is normally `/Applications/Genymotion.app/Contents/MacOS/tools/`.
68+
2. Add the Genymotion tools directory to your path (instructions for [Mac](http://osxdaily.com/2014/08/14/add-new-path-to-path-command-line/), [Linux](http://www.computerhope.com/issues/ch001647.htm), and [Windows](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/)).
69+
3. Make sure that you can run adb from your terminal.
70+
6371
#### `npm run eject`
6472

6573
This will start the process of "ejecting" from Create React Native App's build scripts. You'll be asked a couple of questions about how you'd like to build your project.

0 commit comments

Comments
 (0)