From 6457e28d10c447c98165a6826c97caf8ce423a88 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 9 Mar 2017 14:22:27 +0000 Subject: [PATCH] Make a section on keyboard shortcuts more prominent --- docs/Debugging.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/Debugging.md b/docs/Debugging.md index a07757ecbafc26..9323b272e1bc59 100644 --- a/docs/Debugging.md +++ b/docs/Debugging.md @@ -8,6 +8,10 @@ next: accessibility previous: platform-specific-code --- +## Enabling Keyboard Shortcuts + +React Native supports a few keyboard shortcuts in the iOS Simulator. They are described below. To enable them, open the Hardware menu, select Keyboard, and make sure that "Connect Hardware Keyboard" is checked. + ## Accessing the In-App Developer Menu You can access the developer menu by shaking your device or by selecting "Shake Gesture" inside the Hardware menu in the iOS Simulator. You can also use the **`Command`**`⌘` + **`D`** keyboard shortcut when your app is running in the iPhone Simulator, or **`Command`**`⌘` + **`M`** when running in an Android emulator. @@ -20,8 +24,6 @@ You can access the developer menu by shaking your device or by selecting "Shake Instead of recompiling your app every time you make a change, you can reload your app's JavaScript code instantly. To do so, select "Reload" from the Developer Menu. You can also press **`Command`**`⌘` + **`R`** in the iOS Simulator, or press **`R`** twice on Android emulators. -> If the **`Command`**`⌘` + **`R`** keyboard shortcut does not seem to reload the iOS Simulator, go to the Hardware menu, select Keyboard, and make sure that "Connect Hardware Keyboard" is checked. - ### Automatic reloading You can speed up your development times by having your app reload automatically any time your code changes. Automatic reloading can be enabled by selecting "Enable Live Reload" from the Developer Menu.