From a94d14c47cf89e35112a80deaa985da48fb019b0 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 9 Mar 2017 08:11:40 -0800 Subject: [PATCH] Make a section on keyboard shortcuts more prominent Summary: The note is currently in "Reloading JavaScript". However I was struggling with the first step ("Accessing the In-App Developer Menu") so didn't read down to that section. I think it makes sense to make this the very first thing the reader sees when visiting the page. Closes https://github.com/facebook/react-native/pull/12828 Differential Revision: D4681842 Pulled By: hramos fbshipit-source-id: 1afbec7f62a2ec97febdd05987e7fc1541d3ee28 --- docs/Debugging.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/Debugging.md b/docs/Debugging.md index a07757ecb..9323b272e 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.