You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For local simulator development, prefer `http://localhost:<port>` when the app is running in the iOS simulator. Use a LAN IP only when a physical device must reach a server on the development machine.
55
+
For local simulator development, prefer `http://localhost:<port>` when the app is running in the iOS simulator. Start Expo with `--localhost` or set `REACT_NATIVE_PACKAGER_HOSTNAME=localhost` so Metro bundle URLs in stack traces also use localhost. Use a LAN IP only when a physical device must reach a server on the development machine.
- If native crashes do not appear in Expo, verify the app is not running in Expo Go and that the config plugin is present before rebuilding the native app.
108
-
- If simulator submissions cannot reach a local Exceptionless server, use `http://localhost:<port>` for iOS Simulator. Physical devices need a reachable LAN host.
108
+
- If simulator submissions cannot reach a local Exceptionless server, use `http://localhost:<port>` for iOS Simulator and make sure Metro is not running in Expo's default LAN mode. Physical devices need a reachable LAN host.
109
109
- For malformed or unexpected stacks, verify behavior in `ReactNativeErrorPlugin` tests before changing parser logic.
110
110
- For native crash report loss concerns, verify `NativeCrashPlugin` only clears pending reports after at least one report is retrieved and submitted.
Copy file name to clipboardExpand all lines: example/expo/README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This app tracks Expo SDK 56.
9
9
## Prerequisites
10
10
11
11
- Install dependencies from the repository root with `npm install`.
12
-
- Run an Exceptionless server on `http://localhost:7110`. The example uses localhost for web/iOS Simulator, `10.0.2.2` for Android Emulator, and Expo's `hostUri` for physical devices.
12
+
- Run an Exceptionless server on `http://localhost:7110`. The example uses localhost for web/iOS, `10.0.2.2` for Android Emulator, and Expo's `hostUri` for physical Android devices.
13
13
- Use a development build for native iOS crash reporting.
14
14
15
15
## Run
@@ -21,15 +21,15 @@ npm install
21
21
npm run ios --workspace=example/expo
22
22
```
23
23
24
-
`npm run ios` runs `expo run:ios`, which prebuilds native files when needed, installs the development build, and starts Metro.
24
+
`npm run ios` runs `expo run:ios`, which prebuilds native files when needed, installs the development build, and starts Metro. The script sets `REACT_NATIVE_PACKAGER_HOSTNAME=localhost` so iOS Simulator stack traces use localhost bundle URLs instead of LAN IPs.
25
25
26
26
For the checked-in VS Code launch profile and iPad dogfooding, use:
27
27
28
28
```bash
29
29
npm run ios:ipad --workspace=example/expo
30
30
```
31
31
32
-
`ios:ipad` launches the `iPad Air 11-inch (M3)` simulator on Metro port `8082`, which avoids colliding with another React Native app already using the default `8081` port.
32
+
`ios:ipad` launches the `iPad Air 11-inch (M3)` simulator on Metro port `8082`, which avoids colliding with another React Native app already using the default `8081` port. It also forces the Metro hostname to localhost.
33
33
34
34
If the development build is already installed, start Metro directly:
35
35
@@ -58,7 +58,8 @@ The in-app Logs tab should show events being enqueued and sent to the configured
58
58
59
59
## Notes
60
60
61
-
- The example points at `http://localhost:7110` by default and only derives the host IP for physical devices when Expo provides `hostUri`.
61
+
- The example points at `http://localhost:7110` by default and only derives the host IP for Android physical devices when Expo provides `hostUri`.
62
+
- For iOS Simulator stack traces, run Metro with `--localhost` or `REACT_NATIVE_PACKAGER_HOSTNAME=localhost`; otherwise Expo's default LAN mode can put a `10.x.x.x` URL into stack-frame file names.
62
63
- Native iOS crashes are written by the native module and submitted on the next launch.
63
64
- Android currently exercises JavaScript events only; Android native crash reporting is not implemented yet.
64
65
- Generated native folders are intentionally ignored by `example/expo/.gitignore`; run `npm run prebuild --workspace=example/expo` or `npm run ios --workspace=example/expo` to recreate them locally.
0 commit comments