mirror of
https://github.com/status-im/react-native.git
synced 2025-02-13 01:46:59 +00:00
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
This commit is contained in:
parent
9c6da277bc
commit
a94d14c47c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user