Skip to content

Commit 7793999

Browse files
author
Riccardo
authored
Merge branch 'main' into feat/new-architecture-guide-refactoring
2 parents 18041b0 + ac29dab commit 7793999

38 files changed

+1212
-284
lines changed

docs/_getting-started-windows-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Select the "SDK Platforms" tab from within the SDK Manager, then check the box n
6060
- `Android SDK Platform 31`
6161
- `Intel x86 Atom_64 System Image` or `Google APIs Intel x86 Atom System Image`
6262

63-
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `31.0.0` is selected.
63+
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the `Android SDK Build-Tools` entry, then make sure that `31.0.0` is selected.
6464

6565
Finally, click "Apply" to download and install the Android SDK and related build tools.
6666

docs/build-speed.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ To mitigate this performance hit, this page shares some suggestions on how to **
1313

1414
## Build only one ABI during development (Android-only)
1515

16-
When building your android app locally, you build all the 4 ABIs by default: `armeabi-v7a`, `arm64-v8a`, `x86` & `x86_64`.
1716
When building your android app locally, by default you build all the 4 [Application Binary Interfaces (ABIs)](https://developer.android.com/ndk/guides/abis) : `armeabi-v7a`, `arm64-v8a`, `x86` & `x86_64`.
1817

1918
However, you probably don't need to build all of them if you're building locally and testing your emulator or on a physical device.

docs/debugging.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import con
77

88
## Accessing the In-App Developer Menu
99

10-
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 `⌘D` keyboard shortcut when your app is running in the iOS Simulator, or `⌘M` when running in an Android emulator on Mac OS and `Ctrl+M` on Windows and Linux. Alternatively for Android, you can run the command `adb shell input keyevent 82` to open the dev menu (82 being the Menu key code).
10+
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 `⌘D` keyboard shortcut when your app is running in the iOS Simulator, or `⌘M` when running in an Android emulator on macOS and `Ctrl+M` on Windows and Linux. Alternatively for Android, you can run the command `adb shell input keyevent 82` to open the dev menu (82 being the Menu key code).
1111

1212
![](/docs/assets/DeveloperMenu.png)
1313

@@ -19,7 +19,7 @@ Fast Refresh is a React Native feature that allows you to get near-instant feedb
1919

2020
## Enabling Keyboard Shortcuts
2121

22-
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.
22+
React Native supports a few keyboard shortcuts in the iOS Simulator. They are described below. To enable them on macOS, inside the Simulator app, open the I/O menu, select Keyboard, and make sure that "Connect Hardware Keyboard" is checked.
2323

2424
## LogBox
2525

@@ -75,8 +75,9 @@ The debugger will receive a list of all project roots, separated by a space. For
7575

7676
You can use Safari to debug the iOS version of your app without having to enable "Debug JS Remotely".
7777

78-
- Enable Develop menu in Safari: `Preferences → Advanced → Select "Show Develop menu in menu bar"`
79-
- Select your app's JSContext: `Develop → Simulator → JSContext`
78+
- On a physical device go to: `Settings → Safari → Advanced → Make sure "Web Inspector" is turned on` (This step is not needed on the Simulator)
79+
- On your Mac enable Develop menu in Safari: `Preferences → Advanced → Select "Show Develop menu in menu bar"`
80+
- Select your app's JSContext: `Develop → Simulator (or other device) → JSContext`
8081
- Safari's Web Inspector should open which has a Console and a Debugger
8182

8283
While sourcemaps may not be enabled by default, you can follow [this guide](http://blog.nparashuram.com/2019/10/debugging-react-native-ios-apps-with.html) or [video](https://www.youtube.com/watch?v=GrGqIIz51k4) to enable them and set break points at the right places in the source code.
@@ -116,7 +117,13 @@ react-devtools
116117

117118
It should connect to your simulator within a few seconds.
118119

119-
> Note: if you prefer to avoid global installations, you can add `react-devtools` as a project dependency. Add the `react-devtools` package to your project using `npm install --save-dev react-devtools`, then add `"react-devtools": "react-devtools"` to the `scripts` section in your `package.json`, and then run `npm run react-devtools` from your project folder to open the DevTools.
120+
:::info
121+
If connecting to the emulator proves troublesome (especially Android 12), try running `adb reverse tcp:8097 tcp:8097` in a new terminal.
122+
:::
123+
124+
:::info
125+
If you prefer to avoid global installations, you can add `react-devtools` as a project dependency. Add the `react-devtools` package to your project using `npm install --save-dev react-devtools`, then add `"react-devtools": "react-devtools"` to the `scripts` section in your `package.json`, and then run `npm run react-devtools` from your project folder to open the DevTools.
126+
:::
120127

121128
### Integration with React Native Inspector
122129

docs/fast-refresh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: fast-refresh
33
title: Fast Refresh
44
---
55

6-
Fast Refresh is a React Native feature that allows you to get near-instant feedback for changes in your React components. Fast Refresh is enabled by default, and you can toggle "Enable Fast Refresh" in the React Native developer menu. With Fast Refresh enabled, most edits should be visible within a second or two.
6+
Fast Refresh is a React Native feature that allows you to get near-instant feedback for changes in your React components. Fast Refresh is enabled by default, and you can toggle "Enable Fast Refresh" in the [React Native developer menu](/docs/debugging#accessing-the-in-app-developer-menu). With Fast Refresh enabled, most edits should be visible within a second or two.
77

88
## How It Works
99

0 commit comments

Comments
 (0)